Last active
November 2, 2015 22:11
-
-
Save cornellsteven/e28c4d24644b2849fdea to your computer and use it in GitHub Desktop.
Quick code snippet for 5-column layout in Twitter Bootstrap
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
/* | |
Thanks to Pawel @ wearesicc.com | |
Source: http://www.wearesicc.com/quick-tips-5-column-layout-with-twitter-bootstrap | |
*/ | |
.col-xs-15, | |
.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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment