CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS background clip Property

CSS background-clip Property



The background-clip property is used to define how far the background should extend within an element.


Default Value:-


Its default value is border-box.




Its syntax is:- background-clip: border-box | padding-box | content-box | initial | inherit;


Further Explanation:-


Value Description
border-box The background extends behind the border
padding-box The background extends to the inside edge of the border
content-box The background extends to the edge of the content box
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS