Created
February 19, 2012 13:12
-
-
Save matthewcrist/1863776 to your computer and use it in GitHub Desktop.
Box Sizing
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
* { | |
-webkit-box-sizing: border-box; /* Safari < 5.1, Chrome < 10 */ | |
-moz-box-sizing: border-box; /* Firefox, other Gecko */ | |
box-sizing: border-box; /* Opera/IE 8+/Safari5.1+/Chrome 10+ */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Handy! However, you might want to update the comments to more accurately reflect the latest browser support info from https://developer.mozilla.org/En/CSS/Box-sizing#Browser_compatibility - i.e. that Chrome (since v10) and Safari (since v5.1) no longer require a vendor prefix...?