O'Reilly logo

Real World XML by Steven Holzner

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

Background and Color Properties

You can also use CSS to specify backgrounds, images, and colors. What follows is a synopsis of these properties.

background

  • CSS1 values: [<background-color>||<background-image>||<background-repeat>||<background-attachment>||<background-position>]

  • CSS2 values: inherit

  • Default value: Not defined

  • Element support: All elements

  • Browser support: [IE3, IE4, IE5, IE6, NS4, NS6]

  • Style inherited: No

This shorthand property lets you list the background properties (such as background-color, background-image, background-repeat, background-attachment, and background-position) all at the same time. Of course, you can set these properties individually as well.

background-attachment

  • CSS1 values: scroll|fixed

  • CSS2 values: inherit

  • Default ...

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