CSS background properties:
background-color
background-image
background-repeat
background-attachment (The background-attachment property specifies whether the
background image should scroll or be fixed)
background-position
body {
background-color: lightblue;
}
body {
background-image: url("paper.gif");
}
body {
background-image: url("gradient_bg.png");
background-repeat: repeat-x; /repeat-y;
}
body {
background-image: url("img_tree.png");
background-repeat: no-repeat;
background-position: right top;
background-attachment: fixed; /scroll;
}
CSS background - Shorthand property
To shorten the code, it is also possible to specify all the background properties
in one single property. This is called a shorthand property.
body {
background: #ffffff url("img_tree.png") no-repeat right top;
}