Skip to content

Instantly share code, notes, and snippets.

@shanewholloway
Created January 29, 2012 23:10
Show Gist options
  • Save shanewholloway/1701277 to your computer and use it in GitHub Desktop.
Save shanewholloway/1701277 to your computer and use it in GitHub Desktop.
Untitled
.boxy {
margin: 15px;
outline: 1px dashed red;
width: 200px;
height: 150px;
border: 1px solid white;
padding: 10px;
position: relative;
}
.boxy>div {
background-color: white;
opacity: .5;
height: 100%;
}
#boxA {
background: #88a;
box-sizing: content-box;
}
#boxB {
background: #8a8;
box-sizing: padding-box;
}
#boxC {
background: #a88;
box-sizing: border-box;
}
<!-- content to be placed inside <body>…</body> -->
<article id='boxA' class='boxy'><div>Box A</div></article>
<article id='boxB' class='boxy'><div>Box B</div></article>
<article id='boxC' class='boxy'
><div>Box C</div></article>
{"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