CSS · Properties — CSS Backgrounds and Borders

background-origin

The CSS background-origin property. Initial value: padding-box. Not inherited.

Syntax
background-origin: <visual-box>#

Example

Try it

Notes

Media: visual. Applies to: allElements. Computed value: asSpecified.

More in this group

background background-attachment background-position-x background-position-y border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course