Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the pitfalls of using box-sizing: border-box? [closed]

Tags:

css

border-box

I was recently looking at the box-sizing property again. I feel like border-box is actually a more appropriate model. I want my boxes to include the padding and border without needing to account for it every time in the width calculation, which is not really possible when using 100% width.

So the question is what are the pitfalls? Why should I not use border-box?

like image 702
Parris Avatar asked Sep 03 '25 09:09

Parris


1 Answers

The only pifall I can think of it's that is not supported by IE7&8, on IE9 works fine

like image 50
Caelea Avatar answered Sep 05 '25 01:09

Caelea