You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The box model has been known to trip up a few people. This module should make things a bit easier.
68
+
</p>
69
+
<pclass="measure f5 lh-copy">
70
+
While many people make fun of Microsoft's 'Internet Explorer' browser - the one thing that most css authors
71
+
agree on is that it's the most favorable box model. Fortunately the box-sizing property is well supported
72
+
now so we can fix the atrocity that is the box model that chrome, firefox, safari, and others have implemented in modern browsers.
73
+
</p>
74
+
<pclass="measure f5 lh-copy">
75
+
While the * { box-sizing: border-box; } hack has become quite popular - not all elements (think form inputs)
76
+
benefit from this box model. This module only applies the border-box model to certain elements as listed below.
77
+
There is also a .border-box class you can apply to elements as needed.
78
+
</p>
79
+
<pclass="measure f5 lh-copy">
80
+
The benefit of border-box as opposed to content-box (which is the default per the css spec) is that when you declare a width, that is the width of the element, regardless of how much border or padding you add to the element.
The box model has been known to trip up a few people. This module should make things a bit easier.
41
+
</p>
42
+
<pclass="measure f5 lh-copy">
43
+
While many people make fun of Microsoft's 'Internet Explorer' browser - the one thing that most css authors
44
+
agree on is that it's the most favorable box model. Fortunately the box-sizing property is well supported
45
+
now so we can fix the atrocity that is the box model that chrome, firefox, safari, and others have implemented in modern browsers.
46
+
</p>
47
+
<pclass="measure f5 lh-copy">
48
+
While the * { box-sizing: border-box; } hack has become quite popular - not all elements (think form inputs)
49
+
benefit from this box model. This module only applies the border-box model to certain elements as listed below.
50
+
There is also a .border-box class you can apply to elements as needed.
51
+
</p>
52
+
<pclass="measure f5 lh-copy">
53
+
The benefit of border-box as opposed to content-box (which is the default per the css spec) is that when you declare a width, that is the width of the element, regardless of how much border or padding you add to the element.
0 commit comments