Skip to content

Instantly share code, notes, and snippets.

@sirbrad
Created March 12, 2013 17:22
Show Gist options
  • Save sirbrad/5144934 to your computer and use it in GitHub Desktop.
Save sirbrad/5144934 to your computer and use it in GitHub Desktop.
Untitled
.grid {
background:red;
margin-left: -1em;
overflow: hidden;
/* demo purposes */
margin-bottom: 1em;
}
.cell {
box-sizing: border-box;
width: 25%;
display: block;
float: left;
background-color: blue;
padding-left: 1em;
color: #fff;
}
.cell div {
background:red;
display: block;
padding: 1em;
}
<div class="grid">
<div class="cell">hey</div>
<div class="cell">hey</div>
<div class="cell">hey</div>
<div class="cell">hey</div>
</div>
<div class="grid">
<div class="cell"><div>hey</div></div>
<div class="cell"><div>hey</div></div>
<div class="cell"><div>hey</div></div>
<div class="cell"><div>hey</div></div>
</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