Created
February 3, 2012 16:49
-
-
Save weslly/1731075 to your computer and use it in GitHub Desktop.
box-sizing test
This file contains 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
/** | |
* box-sizing test | |
*/ | |
* { -moz-box-sizing: border-box; box-sizing: border-box; } | |
div:first-child { | |
width:200px; | |
height:200px; | |
background-color:green; | |
padding:20px; | |
border:20px solid black; | |
} | |
div + div { | |
width:200px; | |
height:200px; | |
background-color:green; | |
} |
This file contains 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
<div> | |
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. | |
</div> | |
<div> | |
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. | |
</div> |
This file contains 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
{"view":"split-vertical","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment