background
Name: background
Description: Sets the background properties. Used as a type of shortcut, instead of listing each property separately.
Browser Compatibility: IE 3+ / NN 4+
Inherited: No
Values:
- [background-attachment]
- [background-color]
- [background-image]
- [background-position]
- [background-repeat]
- inherit
Code Example:
body {
background: url(graphic.jpg) #FFF7B5 30% repeat fixed;
}
background: url(graphic.jpg) #FFF7B5 30% repeat fixed;
}
Comments: The order of the properties does not matter. Only a space is required between each property; a semicolon is not needed.