O'Reilly logo

Practical HTML5 Projects by Adrian W. West

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

C H A P T E R  3

Backgrounds

This chapter gives working examples of popular web page enhancements using various CSS background techniques. Many types of backgrounds are covered, including images, gradients, multiple backgrounds, rollover menu buttons, and watermarks. We will also look at the creation of multiple backgrounds using the new CSS3 background properties.

Overview

CSS provides a whole range of backgrounds to enhance web pages. The web has come a very long way since the days of <body bgcolor="#00ffff">. For instance, backgrounds can be:

  • gradients, solid colors, or images
  • positioned precisely on a page
  • repeated (tiled) vertically or horizontally to fill a column, a row or a page
  • overlaid with text and multiple images
  • set to allow ...

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