O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

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

Applying Multiple Backgrounds

One of the most sought-after features in CSS has been the ability to specify multiple backgrounds on a single HTML element (Image and Image). This simplifies your HTML code by reducing the need for elements whose sole purpose is to attach additional images using CSS, making it easier to understand and maintain. Multiple backgrounds can be applied to just about any element.

Image Applying multiple backgrounds.

...<body><div class="night-sky"> ...

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