I will begin to develop a new website, and I am going to deal with various methods that browsers use to calculate the width and height of elements ( box reference material ). For some reason, it occurred to me: what if I just applied box-sizing to all elements of the website?
I am one of those who believe that box-sizing: border-box; - One of the best teams in CSS, with all its limitations. However, the same limitations are those that make me wonder if I should apply box-sizing to all elements:
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; }
Of course, my site should be compatible with as many browsers as possible, and box-sizing poses a few questions when we think about IE7. However, sometimes the schedule is so tight that it would be great to get a few extra minutes without worrying about this particular problem.
In any case, do you think that the use of box-sizing:border-box; to all elements is a good policy or should I continue to do this only for those elements that really need it?
Cthulhu
source share