CHAPTER 8

image

Adding Backgrounds

The secret of good web design is drawing the visitor’s eyes to important parts of the page. Background colors and images help to break up the page and focus attention. Although some images are an important part of the page content, and need to be embedded in the HTML using <img> tags, others are simply decorative touches that should be added through CSS. Using CSS for background images not only keeps your HTML markup less cluttered and easier to maintain, but it also gives you a considerable amount of control over position and size.

The CSS3 Backgrounds and Borders module became a candidate recommendation in April ...

Get Beginning CSS3 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.