controlling the size and alignment of ... - learn html & css · your images using css keeps...

1
408 IMAGES 409 IMAGES Controlling the size and alignment of your images using CSS keeps rules that affect the presentation of your page in the CSS and out of the HTML markup. You can also achieve several interesting effects using background images. In this chapter you will learn how to: Specify the size and alignment of an image using CSS Add background images to boxes Create image rollovers in CSS

Upload: others

Post on 04-Aug-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Controlling the size and alignment of ... - Learn HTML & CSS · your images using CSS keeps rules that affect the presentation of your page in the CSS and out of the HTML markup

408 IMAGES 409IMAGES

Controlling the size and alignment of your images using CSS keeps rules that affect the presentation of your page in the CSS and out of the HTML markup.

You can also achieve several interesting effects using background images. In this chapter you will learn how to:

Specify the size and alignment of an image using CSS ●

Add background images to boxes ●

Create image rollovers in CSS ●