Skip to content

Instantly share code, notes, and snippets.

@ultim8k
Created April 9, 2013 13:13
Show Gist options
  • Save ultim8k/5345600 to your computer and use it in GitHub Desktop.
Save ultim8k/5345600 to your computer and use it in GitHub Desktop.
True Grid
/**
* True Grid
*/
/* -------------------------------- *\
$TRUE_GRID $TBG
\* -------------------------------- */
.row-true-grid { width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.row-true-grid:before,
.row-true-grid:after { display: table; line-height: 0; content: ""; } /* Clearfix */
.row-true-grid [class*="bs-one"] { display: block; float: left; width: 100%; min-height: 30px; /*margin-left: 2.564102564102564%;*/ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.row-true-grid .bs-one-fifth { width: 20%; }
.row-true-grid .bs-one-fourth { width: 25%; }
.row-true-grid .bs-one-third { width: 33.3%; }
.row-true-grid .bs-one-half { width: 50%; }
.row-true-grid .bs-one-whole { width: 100%; }
.test { background-color: lightgrey; border-radius:7px; }
.test-cnt { background-color: orange; }
<div class="test-cnt">
<div class="row-true-grid">
<div class="bs-one-third test"></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