CSS which applied to three column grid
.col-xs-4 { width: 33.3333%; }
.col-sm-4 { width: 33.3333%; }
.col-md-4 { width: 33.3333%; }
.col-lg-4 { width: 33.3333%; }
<div class="row">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">....</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">....</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">....</div>
</div>
Here are attributes which update column grid width (in pixel)
(data-col-xs="?")
(data-col-sm="?")
(data-col-md="?")
(data-col-lg="?")
<div class="row custom-grid">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" data-col-xs="100" data-col-sm="150" data-col-md="200" data-col-lg="250">....</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" data-col-xs="150" data-col-sm="200" data-col-md="250" data-col-lg="300">....</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">....</div>
</div>
This is how the width is applied (in pixel) to the first column :
(data-col-xs="100")
(data-col-sm="150")
(data-col-sm="200")
(data-col-sm="250")
Width applied to the second column :
(data-col-xs="150")
(data-col-sm="200")
(data-col-sm="250")
(data-col-sm="300")
Third column width is set dynamically based on first and second column width
| Extra small devices Phones (<768px) | Small devices Tablets (≥768px) | Medium devices Desktops (≥992px) | Large devices Desktops (≥1200px) | |
|---|---|---|---|---|
| Bootstrap v5.1.3 Class prefix | .col-xs- |
.col-sm- |
.col-md- |
.col-lg- |
| Customize Bootstrap Grid Attributes | data-col-xs |
data-col-sm |
data-col-md |
data-col-lg |