![]() |
VOOZH | about |
Bootstrap 5 Layout Column sizing is used to set the width of the column element. To create equal widths columns, .col within .row classes are used. We can also use the subset of classes to set split the columns unequally.
Layout Column sizing used Classes:
Syntax:
<div class="row"> <div class="col"> ... </div> ... </div>
Example 1: In this example, we will create 2 rows and 1 column using .row and .col classes.
Output:
Example 2: In this example, we will create 3 rows and 2 columns using .row, .col, and .col-* classes.
Output:
Reference: https://getbootstrap.com/docs/5.0/forms/layout/#column-sizing