CSS background-origin property
The background-origin property defines the starting point of the background image.
Consider the following:
- If you want it to start from the upper left corner of the border, you should use the
border-boxvalue - The
padding-boxvalue starts the image from the upper left corner of the padding edge - With the
content-boxvalue, the image extends to its full size from the upper left corner of the content container
Pro Tip: When the background-attachment property has a fixed value, the background origin property has no effect.
