O'Reilly logo

Sams Teach Yourself CSS 24 in Hours by Kynn Bartlett

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

Chapter 11. Backgrounds and Background Colors

<feature><title>What You’ll Learn in This Hour:</title>
  • More using about the background-color property

  • How to use background and foreground colors together effectively

  • How to set a background image and how to control the display of that background

  • Which types of images you can use as backgrounds

In Hour 2, “Getting Started with CSS,” you learned how to use the background-color property to change the appearance of HTML elements. Background colors can be used to good effect in web design to group related items together, or to highlight important parts of the page. In addition to pure colors, you can also use images as backgrounds for the whole page or for any element on the page.

</feature>

Setting Background ...

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