CSS background-clip Property


The background-clip CSS attribute specifies how to expand the background (color or image).

Syntax

Example

Preview

Property Values

Value Description
border-box The default value. The backdrop continues past the boundary.
padding-box The backdrop continues all the way to the inside edge of the border.
content-box The backdrop stretches all the way to the content box's boundary.
initial Set this property's value to the default.
inherit This attribute is inherited from its parent element.

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
background-clip 4.0 4.0 3.0 9.0 10.5