Created
November 19, 2015 23:02
-
-
Save wmeredith/15f21db91d6f3ff7a9f4 to your computer and use it in GitHub Desktop.
5 Column Layout for Bootstrap 3 Using Less
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
.col-xs-5ths, | |
.col-sm-5ths, | |
.col-md-5ths, | |
.col-lg-5ths { | |
position: relative; | |
min-height: 1px; | |
padding-right: $grid-gutter-width/2; | |
padding-left: $grid-gutter-width/2; | |
} | |
.col-xs-5ths { | |
width: 20%; | |
float: left; | |
} | |
@media (min-width: $screen-sm) { | |
.col-sm-5ths { | |
width: 20%; | |
float: left; | |
} | |
} | |
@media (min-width: $screen-md) { | |
.col-md-5ths { | |
width: 20%; | |
float: left; | |
} | |
} | |
@media (min-width: $screen-lg) { | |
.col-lg-5ths { | |
width: 20%; | |
float: left; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: