Home » CSS Tutorial » CSS Properties » background
background
CSS Property Info :
| Syntax: |
background: <value> |
| Possible Values: |
<background-color> || <background-image> || <background-repeat> || <background-attachment> || <background-position>
|
| Initial Value: |
Not defined |
| Applies to: |
All elements |
| Inherited: |
No |
CSS Browser Support :
Internet Explorer 3+
Netscape 4+
Opera 3.6+
W3C's CSS Level 1+
CSS Profile 1.0
Web TV
CSS Property Description :
The background property is a shorthand for the more specific background-related properties. Some examples of background declarations follow:
BODY { background: white url(http://www.htmlhelp.com/foo.gif) }
BLOCKQUOTE { background: #7fffd4 }
P { background: url(../backgrounds/pawn.png) #f0f8ff fixed }
TABLE { background: #0c0 url(leaves.jpg) no-repeat bottom right }
A value not specified will receive its initial value. For example, in the first three rules above, the background-position property will be set to 0% 0%.
To help avoid conflicts with user style sheets, background and color properties should always be specified together.
CSS Bugs / Problems :
none
Adapted by style-sheets.com, maker of Style Studio, powerful CSS Editor for Windows.
Copyright © John Pozadzides and Liam Quinn. All rights reserved.
Home » CSS Tutorial » CSS Properties » background
|