From http://www.w3schools.com (Copyright Refsnes Data)
The background property is a shorthand property for setting all background properties in one declaration.
Inherited: No
CSS properties can also be dynamically changed with a JavaScript.
Scripting Syntax: object.style.background="#FF0000"
In our HTML DOM tutorial you can find more details about the background property.
In our HTML DOM tutorial you can also find a full Style Object Reference.
body body body |
Value | Description |
---|---|
background-color background-image background-repeat background-attachment background-position |
You can declare from one to five background properties in this declaration
Default value: Not defined |
All the background properties
in one declaration
This example demonstrates how to set all of
the background properties in one declaration.
From http://www.w3schools.com (Copyright Refsnes Data)