background

Support Key: [CSS1|CSS2] [IE3B1|N4B2|O3.5]
Other Color/Background Properties
color
layer-background-color
layer-background-color
background-color
background-image
background-repeat
background-attachment
background-position
background-position-x
background-position-y
= Index DOT Css by Brian Wilson =
  Main Index | Property Index | CSS Support History | Browser History  



   Quick Statistics   
Default Value:
NA
Applicable Elements:
All
Inherit From Parent:
No
Applicable Media:
Visual
HTML Equivalent:
<body BGCOLOR="#RRGGBB" BACKGROUND="URL" BGPROPERTIES="fixed"> |
<table|thead|tbody|tfoot|tr|th|td BGCOLOR="#RRGGBB" BACKGROUND="URL">
What is it?
This is a shorthand property notation for specifying information about how to display the background surface onto which content (images, text, etc.) is rendered. Backgrounds can be colors and/or images. If an image is specified, many choices are available to specify display behavior. Both a background color and image can be specified in the same property definition, but it is not required to have both. If URL behavior properties are listed without an accompanying URL, the values will be ignored. Although this property does not inherit, a parent element's background will shine through because of the default 'transparent' background-color value in the children elements. The background property is one of several shorthand properties that specify values controlling many aspects of display behavior.

Allowed Values
inherit
[CSS2] [N6|O7]
Type: Explicit
Description:
Explicitly sets the value of this property to that of the parent.
[background-color]
[CSS1|CSS2] [IE3B1|N4B2|O3.5]
Type: NA
Description:
See the individual property for details on syntax and allowed values.
[background-image]
[CSS1|CSS2] [IE3B1|N4B2|O3.5]
Type: NA
Description:
See the individual property for details on syntax and allowed values.
[background-repeat]
[CSS1|CSS2] [IE3|NS4B3|O3.5]
Type: NA
Description:
See the individual property for details on syntax and allowed values.
[background-attachment]
[CSS1|CSS2] [IE3|NS6|O3.5]
Type: NA
Description:
See the individual property for details on syntax and allowed values.
[background-position]
[CSS1|CSS2] [IE3|NS6|O3.5]
Type: NA
Description:
See the individual property for details on syntax and allowed values.
Syntax
Selector { background: [background-color] [background-image] [background-repeat] [background-attachment] [background-position] }
Example
Ext/Doc: body { background: white url(http://www.foo.com/image.gif) repeat-x fixed top right}
In-Line:  <body STYLE="background: white url(http://www.foo.com/image.gif)
repeat-x fixed top right">test text in the body</body>
Browser Peculiarities

Boring Copyright Stuff....