Chapter 5. How Do I Add Backgrounds and Borders to Improve the Look of My Page?

The secret of good web design is drawing the visitor's eyes to important parts of the page. Images, borders, and background colors all help to break up the page and focus attention. The images you inserted in the exercises in the previous chapter not only look attractive, they tell the visitor what the Grand Canyon looks like. But images can also serve another purpose—decorative touches that please the eye and give a unified look to the site. Rather than littering the HTML markup with purely decorative images, it's preferable to add them as background. Although some HTML tags allow you to add background images, the options are very limited. CSS, on the other hand, ...

Get Getting StartED with CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.