Last active
October 19, 2016 07:36
-
-
Save dextermb/cf1f224a41e48e43a6d250514054509f to your computer and use it in GitHub Desktop.
12 column grid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Grid | |
*/ | |
.cols { | |
display: block; | |
} | |
.cols > [class*='col-'] { | |
display: inline-block; | |
float: left; | |
vertical-align: top; | |
} | |
.cols >:first-child { | |
padding-right: 10px; | |
} | |
.cols >:last-child { | |
padding-left: 10px; | |
} | |
.cols .col-1 { | |
width: 8.33%; | |
} | |
.cols .col-2 { | |
width: 16.66%; | |
} | |
.cols .col-3 { | |
width: 24.99%; | |
} | |
.cols .col-4 { | |
width: 33.32%; | |
} | |
.cols .col-5 { | |
width: 41.65%; | |
} | |
.cols .col-6 { | |
width: 49.98%; | |
} | |
.cols .col-7 { | |
width: 58.31%; | |
} | |
.cols .col-8 { | |
width: 66.64%; | |
} | |
.cols .col-9 { | |
width: 74.97%; | |
} | |
.cols .col-10 { | |
width: 83.30%; | |
} | |
.cols .col-11 { | |
width: 91.63%; | |
} | |
.cols .col-12 { | |
width: 99.96%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment