Specify the painting area of the background:
The background-clip property sets or returns the painting area of the background.
The backgroundClip property is supported in Internet Explorer 9+, Firefox, Opera, Chrome, and Safari.
Note: The backgroundClip property is not supported in Internet Explorer 8 and earlier versions.
Return the backgroundClip property:
Set the backgroundClip property:
Value | Description |
---|---|
border-box | Default value. The background is clipped to the border box |
padding-box | The background is clipped to the padding box |
content-box | The background is clipped to the content box |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | border-box |
---|---|
Return Value: | A String, representing the background-clip property of an element |
CSS Version | CSS3 |
CSS reference: background-clip property