difference between border box and content box code example
Example 1: difference bw box and border box
.alligator-box {
box-sizing: border-box;
width: 125px;
height: 125px;
border-width: 10px;
padding: 40px;
}
Example 2: difference bw box and border box
.alligator-box {
box-sizing: content-box;
width: 125px;
height: 125px;
border-width: 10px;
padding: 40px;
}