You are here : cssCSS 3background-origin

background-origin - CSS 3

The background-origin property specifies where the background image is 
positioned.Note: If the background-attachment property is set to "fixed", this property has no effect.


Syntax

background-origin: padding-box|border-box|content-box|initial|inherit;


Example

#example1
	{
	    background:url(img_flwr.gif);    
	background-repeat: no-repeat;    padding:35px;    
	background-origin: content-box;}


Output / Return Value


Limitations


Alternatives / See Also


Reference