Background property
The background property is a shorthand and it is possible to specify all background properties with this single property.
body {
background-color: #ffffff;
background-image: url("image_name.png");
background-repeat: no-repeat;
background-position: right top;
}
Shorthand Property Background can do the above in one line.
Example
body {
background: #ffffff url("resources/images/mountain.jpg") no-repeat right top;
}
Click on the "Try it Now" button to see how it works.
When using the shorthand property the order of the property values is:
background-color
background-image
background-repeat
background-attachment
background-position
Note: Shorthand Property Background can do the above in one line.