"5 columns layout for Bootstrap"
Bootstrap 4.1.1 Snippet by SANTANU CHOWDHURY

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="row"> <div class="col-md-15 col-xs-3"> Now you are ready to combine your classes with original Bootstrap classes. For example, if you would like to create div element which behaves like five columns layout on medium screens and like four columns on smaller ones, you just need to use something like this </div> <div class="col-md-15 col-xs-3"> Now you are ready to combine your classes with original Bootstrap classes. For example, if you would like to create div element which behaves like five columns layout on medium screens and like four columns on smaller ones, you just need to use something like this </div> <div class="col-md-15 col-xs-3"> Now you are ready to combine your classes with original Bootstrap classes. For example, if you would like to create div element which behaves like five columns layout on medium screens and like four columns on smaller ones, you just need to use something like this </div> <div class="col-md-15 col-xs-3"> Now you are ready to combine your classes with original Bootstrap classes. For example, if you would like to create div element which behaves like five columns layout on medium screens and like four columns on smaller ones, you just need to use something like this </div> <div class="col-md-15 col-xs-3"> Now you are ready to combine your classes with original Bootstrap classes. For example, if you would like to create div element which behaves like five columns layout on medium screens and like four columns on smaller ones, you just need to use something like this </div> </div>
.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; } }

Related: See More


Questions / Comments: