Created
December 28, 2013 00:46
-
-
Save dasjestyr/8154670 to your computer and use it in GitHub Desktop.
A css grid system. The number represents a column span. The inherent width of each subsequent column (numbered) is equal to the column width plus the gutter width. Use gridulator.com to help with the calculations.
This file contains 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
/* | |
Width: 1000px | |
# Columns : 12 | |
Column width: 65px | |
Gutter : 20px | |
*/ | |
.grid_1 { width: 65px; } | |
.grid_2 { width: 150px; } | |
.grid_3 { width: 235px; } | |
.grid_4 { width: 320px; } | |
.grid_5 { width: 405px; } | |
.grid_6 { width: 490px; } | |
.grid_7 { width: 575px; } | |
.grid_8 { width: 660px; } | |
.grid_9 { width: 745px; } | |
.grid_10 { width: 830px; } | |
.grid_11 { width: 915px; } | |
.grid_12 { width: 1000px; } | |
.grid_1, | |
.grid_2, | |
.grid_3, | |
.grid_4, | |
.grid_5, | |
.grid_6, | |
.grid_7, | |
.grid_8, | |
.grid_9, | |
.grid_10, | |
.grid_11, | |
.grid_12 { | |
margin: 0 20px 10px 0; | |
float: left; | |
display: block; | |
} | |
.alpha{margin-left:0px;} | |
.omega{margin-right:0px;} | |
.container{ | |
width: 1000px; | |
margin: auto; | |
} | |
.clear{ | |
clear:both; | |
display:block; | |
overflow:hidden; | |
visibility:hidden;width:0;height:0 | |
} | |
.clearfix:after { | |
clear:both; | |
content:' '; | |
display:block; | |
font-size:0; | |
line-height:0; | |
visibility:hidden; | |
width:0; | |
height:0 | |
} | |
* html | |
.clearfix, | |
*:first-child+html | |
.clearfix{ | |
zoom:1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment