CSS2 » Properties » background

Version: Level 1

Compability:  IE4+  N4+

Syntax:
background : background-color &| background-image &| background-repeat &| background-attachment &| background-position

The background property allows you to combine together in only one declaration any, or all, of five individual Cascading Style Sheet properties related to background. This property is not inherited.

Each of these five individual properties are discussed on their own page.

Examples

Code:
blockquote { background: red no-repeat scroll 5% 60%; }
body { background: url("images/aardvark.gif") repeat-y; }
pre { background: url("images/aardvark.gif") top; }
caption { background: fuchsia; }
Language(s): CSS2

See Also: