Skip to content

Instantly share code, notes, and snippets.

@fourseven
Created March 19, 2013 21:56
Show Gist options
  • Save fourseven/5200494 to your computer and use it in GitHub Desktop.
Save fourseven/5200494 to your computer and use it in GitHub Desktop.
border-box
/**
* border-box
*/
* {box-sizing: border-box;}
.non-border-box {
box-sizing: content-box;
}
div {
border: 2px solid blue;
height: 100px;
width: 100px;
padding: 0 10px;
margin: 0 10px;
}
.inline-block {
display: inline-block;
}
<div class="non-border-box"></div>
<div></div>
<div class="inline-block">
</div>
<div class="float">
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment