CSS Background Clip
- The
background-clip
property in CSS is used to specify the painting area of the background of an element. - It determines whether the background color of an element will be extended beneath its borders, and if so, how far.
Syntax
The background-clip
property has the following syntax:
background-clip: border-box|padding-box|content-box|initial|inherit;
border-box
: The background is clipped to the border box of the element.padding-box
: The background is clipped to the padding box of the element.content-box
: The background is clipped to the content box of the element.initial
: Sets the property to its default value.inherit
: Inherits the property from its parent element.