CSS Property:

background-origin

Result:

This is an example of the CSS background-origin property.

CSS Code:

#myDiv {
                
padding:60px 20px;
border:5px dotted #202131;
background-image:url('/build/images/logo-color-w3.png');
background-origin:initial;
background-repeat:no-repeat;
}
Click the property values above to see the result
W3Docs.com-Play it
¿Te resulta útil?