8

BACKGROUND IMAGES

Image

Adding decorative elements to make our websites more visually appealing used to be surprisingly resource- and time-intensive. Even seemingly simple graphical effects, such as two background images on the same element, required a lot of unnecessary markup, and this in turn made pages slower to render and harder to maintain.

CSS3 introduces a number of new and extended properties that are aimed at decorating elements much more simply, and the browser makers have been quick to implement them and to add a number of their own implementations as well. Over the next few chapters, we’ll take a look at the new range of features that ...

Get The Book of CSS3, 2nd Edition 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.