Skip to content

Instantly share code, notes, and snippets.

@landru247
Created April 23, 2014 18:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save landru247/11226887 to your computer and use it in GitHub Desktop.
Save landru247/11226887 to your computer and use it in GitHub Desktop.
Bootstrap: 5 col grid - adds new grid pattern to bootstrap (5 col)
.col-sm-15,
.col-md-15,
.col-lg-15 {
position: relative;
min-height: 1px;
padding-right: 10px;
padding-left: 10px;
}
.col-xs-15 {
width: 20%;
float: left;
}
@media (min-width: 768px) {
.col-sm-15 {
width: 20%;
float: left;
}
}
@media (min-width: 992px) {
.col-md-15 {
width: 20%;
float: left;
}
}
@media (min-width: 1200px) {
.col-lg-15 {
width: 20%;
float: left;
}
}
<div class="row">
<div class="col-md-15 col-sm-3">
...
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment