Skip to content

Instantly share code, notes, and snippets.

@weslly
Created February 3, 2012 16:49
Show Gist options
  • Save weslly/1731075 to your computer and use it in GitHub Desktop.
Save weslly/1731075 to your computer and use it in GitHub Desktop.
box-sizing test
/**
* 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;
}
<div>
Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
</div>
<div>
Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
</div>
{"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