You are here : cssCSS 3background-image

background-image - CSS 3

The background-image property sets one or more background images for an element.The background of an element is the total size of the element, including 
padding and border (but not the margin).By default, a background-image is placed at the top-left corner of an 
element, and repeated both vertically and horizontally.Tip: Always set a background-color to be used if the image is unavailable.


Syntax

background-image: url|none|initial|inherit;


Example

body
	{
	   
	background-image: url("paper.gif");
	   
	background-color: #cccccc;
	}


Output / Return Value


Limitations


Alternatives / See Also


Reference