background-origin

The origin of the background is determined by this CSS property: from the border start, inside the border, or inside the padding.

Example

Initial value padding-box
Applies to all elements in the page

Syntax

  
background-origin: content-box;
  

Values

Bbackground is placed relative to the border box.
Background is placed relative to the padding box.
Background is placedv relative to the content box.

Browser support

background-origin1124910.53
content-box1124910.53

We use cookies to improve your experience. Learn more in our Privacy policy.

×