I prefer method 2, as it keeps it more simple and straight-forward for me, however, method 3 gives more flexibility as then the developer can choose when to use content-box at will. The flip-side to that is that means border-box can't be inherited normally.
I am from developing countries so we don't have much access to interact with the world's community because of less internet coverage and lack of internal credit card to follow premium courses now I am
Great article, border-box is a great way to make things a little simpler.
For those wondering, there are a few ways to set it as the default(ish) behavior:
Method 1
Method 2
Method 3
I prefer method 2, as it keeps it more simple and straight-forward for me, however, method 3 gives more flexibility as then the developer can choose when to use
content-box
at will. The flip-side to that is that meansborder-box
can't be inherited normally.It's amazing how wonderful you explained the difference and impacts on implications