background-clip property
Specifies the background painting area or areas relative to the element's bounding boxes.
![]() ![]() |
Syntax
background-clip: border-box | padding-box | content-box [ , border-box | padding-box | content-box ]*
Property values
One or more of the following values, separated by commas:
border-box-
Initial value. The background is painted within (clipped to) the border box.
padding-box-
The background is painted within (clipped to) the padding box.
content-box-
The background is painted within (clipped to) the content box.
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value | border-box |
Standards information
- CSS Backgrounds and Borders Module Level 3, Section 3.7
Remarks
If the background-attachment property value for an element is set to "fixed", the background-clip property has no effect.
Starting in Windows Internet Explorer 9, the background of an element can have multiple layers. The number of layers is determined by the number of comma-separated values in the background-image property. Each of the images is sized, positioned, and tiled according to the corresponding value in the other background properties (background-attachment, background-clip, background-origin, background-position, background-repeat, and background-size). The first image in the list is the layer closest to the user, the next one is painted behind the first, and so on.
See also
- style
- style
- CSSStyleDeclaration
- currentStyle
- defaults
- LayoutRect
- runtimeStyle
- style
- Reference
- background-color
- background-image
- background-repeat
- background-attachment
- background-position
- background-origin
- background-size
- background
Send comments about this topic to Microsoft
Build date: 11/29/2012

