background clip

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

CSS3 background-clip Property

Example

Specify the painting area of the background:

div {
    border: 10px dotted black;
    padding:35px;
    background: yellow;
    background-clip: content-box;

}

CSS Syntax

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

 

Property Values

Value Description  
border-box Default value. The background is clipped to the border box  
padding-box The background is clipped to the padding box  
content-box The background is clipped to the content box  
initial Sets this property to its default value. Read about initial  
inherit Inherits this property from its parent element. Read about inherit