background-clip

Sets whether an element's background extends behind its border box, padding box, or content box.

Initial value border-box
Applies to all elements in the page

Syntax

  
background-clip: content-box;
  

Values

The background extends to the outer edge of the border (but underneath the border in z-ordering).
The background extends to the outer edge of the padding. No background is drawn beneath the border.
The background is clipped to the content-box.
The background is clipped to the text in the element.

Browser support

background-clip1124910.53
content-box1124910.53
text31549154

We use cookies to improve your experience. Learn more in our Privacy policy.

×