0

Can you explain box-sizing:border-box;??in css

Box-sizing:border-box

16th Dec 2020, 3:47 PM
Hadital
Hadital - avatar
3 Antworten
+ 2
You are welcome 👍
17th Dec 2020, 5:23 AM
axita
axita - avatar
+ 3
By default, the width and height of an element is calculated like this: width + padding + border = actual width of an element height + padding + border = actual height of an element But , The box-sizing property allows us to include the padding and border in an element's total width and height. If you set box-sizing: border-box; on an element, padding and border are included in the width and height. Where as normally padding and border are not included in width & height.
16th Dec 2020, 4:33 PM
axita
axita - avatar
0
Tank you this is explain is great
16th Dec 2020, 5:16 PM
Hadital
Hadital - avatar