Performance: Mixing column widths
This affects page layout stability and rendering speed by how the browser calculates and paints column widths.
<div class="row"> <div class="col-3">Fixed width via grid</div> <div class="col">Flexible width</div> </div>
<div class="row"> <div class="col-3" style="width: 200px;">Fixed width</div> <div class="col">Flexible width</div> </div>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Mixed fixed inline width + Bootstrap col | Low | Multiple reflows per layout change | High due to layout shifts | [X] Bad |
| Consistent Bootstrap column classes | Low | Single reflow | Low paint cost, stable layout | [OK] Good |
col-6 mean in Bootstrap's grid system?col-6 meaningcol-6 means the column uses 6 of those 12 parts, which is half the row width.col-12 for small and col-md-4 for medium screens.<div class='row'> <div class='col-3'>A</div> <div class='col-6'>B</div> <div class='col-3'>C</div> </div>
<div class='row'> <div class='col-5'>X</div> <div class='col-8'>Y</div> </div>
col-12 for all columns.col-lg-3), middle takes 6 parts (col-lg-6).col-12 col-lg-3 for left and right, and col-12 col-lg-6 for middle to apply small screen first, then large screen overrides.Pass the test and this pattern moves unknown