Specify the painting area of the background:
![]()
The background-clip property is supported in Internet Explorer 9+, Firefox, Opera, Chrome, and Safari.
Note: The background-clip property is not supported in Internet Explorer 8 and earlier versions.
The background-clip property specifies the painting area of the background.
| Default value: | border-box |
|---|---|
| Inherited: | no |
| Version: | CSS3 |
| JavaScript syntax: | object.style.backgroundClip="content-box" |
| Value | Description | Play it |
|---|---|---|
| border-box | The background is clipped to the border box | Play it » |
| padding-box | The background is clipped to the padding box | Play it » |
| content-box | The background is clipped to the content box | Play it » |
CSS3 tutorial: CSS3 Backgrounds
Your message has been sent to W3Schools.