O'Reilly logo

CSS & CSS3 by Robin Nixon

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

Image

Setting Backgrounds

Images

         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 ...

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