Skip to content

Instantly share code, notes, and snippets.

Created May 22, 2013 01:08
Show Gist options
  • Save anonymous/5624531 to your computer and use it in GitHub Desktop.
Save anonymous/5624531 to your computer and use it in GitHub Desktop.
Untitled
.table {display:table;width:100%;background:white;height:auto;}
.table.table {height:50%;}
.cell {display:table-cell;vertical-align:middle;border:solid;text-align:center;
background:turquoise;}
.table .table .cell:nth-child(1n) {background:white;}
.table .table .cell:nth-child(2n) {background:gold;}
.table .table .cell:nth-child(3n) {background:#ddd;}
.table .table .cell:nth-child(4n) {background:#159;}
html {background:#333;}
<section class="table">
<aside class="cell"><br/><br/><br/><br/><br/><br/><br/><br/><br/>
-:/* C */:-<br/><br/><br/><br/><br/><br/>
</aside>
<article class="cell">
<section class="table">
<p class="cell">D</p><p class="cell">D</p><p class="cell">D</p><p class="cell">-:/* D */:-</p><p class="cell">D</p><p class="cell">D</p><p class="cell">D</p><p class="cell">D</p><p class="cell">D</p><p class="cell">D</p><p class="cell">D</p><p class="cell">D</p><p class="cell">D</p><p class="cell">D</p><p class="cell">D</p><p class="cell">D</p>
</section>
<section class="table">
<p class="cell">E</p><p class="cell">-:/* E */:-</p><p class="cell">E</p><p class="cell">E</p><p class="cell">E</p><p class="cell">E</p><p class="cell">E</p>
</section>
</article>
</section>
// alert('Hello world!');
{"view":"separate","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