O'Reilly logo

HTML Dog: The Best-Practice Guide to XHTML & CSS by Patrick Griffiths

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Images

IMAGES ARE PERHAPS the most obvious way to add visual appeal to a web page. If you want anything more than the most minimal of minimal sites you’ll want to use images in one way or another, whether it’s showing off your holiday photos or adding curved corners to your layout. Images also used to be used all over the place to help lay out pages as invisible “spacer GIFs,” but now that we’ve got CSS layout on our side (see Chapter 5, “Layout”), we can do away with those crazy days.

You can split the use of images quite neatly into two camps: one for content (such as those holiday photos) and one for presentation (that’ll be those curved corners), and unless you’ve just opened the book for the first time and landed on this page, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required