Skip to content

Instantly share code, notes, and snippets.

@samarkandiy
Last active August 29, 2015 14:09
Show Gist options
  • Save samarkandiy/f535c0d476b7d68bd074 to your computer and use it in GitHub Desktop.
Save samarkandiy/f535c0d476b7d68bd074 to your computer and use it in GitHub Desktop.
Simple CSS grid
.row {
margin: 1% 0;
overflow: auto;
}
.col {
float: left;
box-sizing: border-box;
-o-box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.col-11 {
width: 91.66%;
}
.col-10 {
width: 83.33%;
}
.col-9 {
width: 75%;
}
.col-8 {
width: 66.66%;
}
.col-7 {
width: 58.33%;
}
.col-6 {
width: 50%;
}
.col-5 {
width: 41.66%;
}
.col-4 {
width: 33.33%;
}
.col-3 {
width: 25%;
}
.col-2 {
width: 16.66%;
}
.col-1 {
width: 8.33%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment