why do we use box-sizing as border box code example
Example 1: * box-sizing border-box
*{
box-sizing: border-box;
}
Example 2: textarea { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: 100%; }
textarea {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
}