CSS3 16 - CSS3 Box Sizing Property | content-box vs border-box | Box Sizing for Cross Browser

Опубликовано: 04 Октябрь 2024
на канале: Ankpro Training
1,156
11

CSS3 Box Sizing Property
content-box vs border-box
CSS allows us to change the size of the box in form of width, height, padding, border.

p{
width:400px;
height:400px;
border :20px dashed blueviolet;
background-color: darkgoldenrod;
margin: 10px;
float: left;
}
#content{box-sizing: content-box;}
#border{ box-sizing: border-box}