HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

background-origin

Description

The background-origin property for CSS 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

1 · border-box

2 · content-box

3 · padding-box

4 · JS