You are here : cssCSS 3background-position

background-position - CSS 3

The background-position property sets the starting position of a background image.Tip: By default, a background-image is placed at the top-left corner of an 
element, and repeated both vertically and horizontally.


Syntax

background-position: value;


Example

body
	{ 
	   
	background-image: url('smiley.gif');
	   
	background-repeat: no-repeat;
	   
	background-attachment: fixed;
	   
	background-position: center; 
	}


Output / Return Value


Limitations


Alternatives / See Also


Reference