background-color
background-image
background-repeat
background-attachment
background-position
background-color
property specifies the background color of an element.
The background color of a page is defined in the body selector, e.g.,
body { background-color:#b0c4de; }The background color can be specified by:
"red"
,"rgb(255,0,0)"
, and"#ff0000"
.h1
and div
elements have different background colors:
h1 { background-color:#6495ed; } div { background-color:#b0c4de; }Background Image
background-image
property specifies an image to use as the background of an element.
By default, the image is repeated so it covers the entire element.
The background image for a page can be set like this:
body { background-image:url('bg.png'); }
Exercising would be much more rewarding if calories screamed while you burned them. |