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

background-clip

Description

The background-clip property for CSS determines the area within which the background is painted.

Syntax

CSS

background-clip: value;

JS

object.style.backgroundClip = "value";

Values

<'background-clip'> = <bg-clip>#
<bg-clip> = <box> | text
<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.

text

Area within the text.

Initial

border-box

Examples

1 · border-box

2 · padding-box

3 · content-box

4 · text

5 · JS