Created
January 14, 2015 17:06
-
-
Save bookwyrm/8a354c3672a9d20b2a80 to your computer and use it in GitHub Desktop.
Inherited box-sizing Breaks Principle of Least Surprise Code Samples - http://www.vanderpol.net/inherited-box-sizing-breaks-principle-of-least-surprise/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*, *:before, *:after { | |
box-sizing: border-box; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment