background-origin

Back to the index.

This page tests background-origin. Where does the background image originate? In the padding box, the content box, or the border box?

padding-box (default)

The background originates in the padding box.

padding-box

border-box

The background originates in the border box.

border-box

content-box

The background originates in the content box.

content-box