AdBlock Detected!
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.
CSS Background-Origin Property |
The CSS background-origin property specifies where the top left corner of the background image should be located within the element. There are three possible values:
The picture below shows where the top left corner of the background image is located for each background-origin value.
Below we show an example for each possible value. Example 1: Background-origin: border-box CSS Declaration
Result: In Example 1, the background image fills the entire element, including the border area. The border area has been set to be opaque so you can see the presence of the image in the border area. Example 2: Background-origin: padding-box CSS Declaration
Result: In Example 2, the top left corner of the background image aligns with the top left corner of the padding area. Example 3: Background-origin: content-box CSS Declaration
Result: In Example 3, the top left corner of the background image aligns with the top left corner of the content area.
|
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.