background-origin

The background-origin CSS property specifies the background positioning area.

Syntax

CSS

background-origin: value;

JS

object.style.backgroundOrigin = "value";

Values

<'background-origin'> = <box>#
<box> = border-box | padding-box | content-box
border-box

Area within the border box.

padding-box

Area within the padding box.

content-box

Area within the content box.

Initial

padding-box

Examples

border-box

content-box

padding-box

JS

World Wide Web Consortium (W3C)

Home Menu