Please visit our sponsors !
The background property
The background property is a shorthand property for setting all background properties in one declaration.
Note: This property works only partially in Netscape 4.0. The background-attachment and background-position properties do not work in Netscape 4.0.
Inherited: No
Example
body
{
background: #FF0000
}
body
{
background: url(stars.gif) no-repeat top
}
body
{
background: #00FF00 url(stars.gif) no-repeat fixed top
}
|
Possible Values
Value |
Description |
NN |
IE |
background-color
background-image
background-repeat
background-attachment
background-position |
You can declare from one to five background properties in
this declaration |
6.0 |
4.0 |
Browser Notes
Note in Netscape 4.0 Beta 2:
- Only "background-color" and "background-image"
works in the "background" property
Note in Netscape 4.0 Beta 3:
- "background-color", "background-image", and
"background-repeat" works in the "background"
property
|
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|