Skip to content

Instantly share code, notes, and snippets.

@christian-fei
Last active December 30, 2015 00:08
Show Gist options
  • Save christian-fei/7747009 to your computer and use it in GitHub Desktop.
Save christian-fei/7747009 to your computer and use it in GitHub Desktop.
minimal grid system
*, *:before, *:after{
margin: 0;
padding: 0;
box-sizing:border-box;
}
.row{
width: 100%;
overflow: hidden;
}
.row > *{
float: left;
width: 100%;
display: inline-block;
}
.half{
width: 50%;
}
.third{
width: 33.33%;
}
.fourth{
width: 25%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment