Setting Backgrounds
To view the accompanying video for this lesson, please visit mhprofessional.com/nixoncss/.
CSS2 provides a lot of support for backgrounds, but there were still areas connected with the CSS box model that needed improvement, and which have now been addressed in CSS3, with two new properties: background-clip
and background-origin
.
Between them you can specify where a background should start within an element, and also how to clip the background so that it doesn’t appear in parts of the box model where you don’t want it ...
Get CSS & CSS3: 20 Lessons to Successful Web Development 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.