Created
December 20, 2017 02:29
-
-
Save amilabandara/22861dab8604ce55c33c7c9aa9919d20 to your computer and use it in GitHub Desktop.
7 Column gird with Bootstrap 4
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
<style type="text/css"> | |
@media (min-width: 768px){ | |
.seven-cols .col-md-1, | |
.seven-cols .col-sm-1, | |
.seven-cols .col-lg-1 { | |
width: 100%; | |
*width: 100%; | |
} | |
} | |
@media (min-width: 992px) { | |
.seven-cols .col-md-1, | |
.seven-cols .col-sm-1, | |
.seven-cols .col-lg-1 { | |
width: 14.285714285714285714285714285714%; | |
*width: 14.285714285714285714285714285714%; | |
max-width: 14.285714285714285714285714285714% !important; | |
flex:none !important; | |
} | |
} | |
@media (min-width: 1200px) { | |
.seven-cols .col-md-1, | |
.seven-cols .col-sm-1, | |
.seven-cols .col-lg-1 { | |
width: 14.285714285714285714285714285714%; | |
*width: 14.285714285714285714285714285714%; | |
max-width: 14.285714285714285714285714285714% !important; | |
flex:none !important; | |
} | |
} | |
</style> | |
<div class="row seven-cols"> | |
<div class="col-md-1"></div> | |
<div class="col-md-1"></div> | |
<div class="col-md-1"></div> | |
<div class="col-md-1"></div> | |
<div class="col-md-1"></div> | |
<div class="col-md-1"></div> | |
<div class="col-md-1"></div> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is what I was looking for. Thank you!