CSS background

Previous Next

Demo of the different values of the background property.

Click the property values below to see the result:

background: red;
background: blue;
background: coral;
background: lightblue;
background: url("paper.gif");
background: url("img_tree.gif");
background: url("img_tree.gif") red;
background: url("img_tree.gif") no-repeat;
background: url("img_tree.gif") no-repeat center;
This demo shows some different techiques on how to set a background of a HTML element.
This demo shows some different techiques on how to set a background of a HTML element.
This demo shows some different techiques on how to set a background of a HTML element.
This demo shows some different techiques on how to set a background of a HTML element.
This demo shows some different techiques on how to set a background of a HTML element.
This demo shows some different techiques on how to set a background of a HTML element.
This demo shows some different techiques on how to set a background of a HTML element.
This demo shows some different techiques on how to set a background of a HTML element.
This demo shows some different techiques on how to set a background of a HTML element.

Play more with the code in our Tryit yourself editor: Try it Yourself ❯