ExampleSpecify the painting area of the background image:
Try it yourself » |
The background-clip property is only supported in Opera.
Safari and Chrome support an alternative, the -webkit-background-size property.
The background-clip property specifies the painting area of the background images.
Default value: | border-box |
---|---|
Inherited: | no |
Version: | CSS3 |
JavaScript syntax: | object.style.backgroundClip="content-box" |
background-clip: padding-box|border-box|content-box; |