![]() |
VOOZH | about |
Bootstrap 5 Columns facilitates the different option for the alignment, ordering, and offsetting of the Columns with the help of flexbox grid system. The different available column classes can be utilized to manage widths of non-grid elements.
Bootstrap 5 Columns: The following components is used that helps to align the columns vertically and horizontally, along with reordering them, which are described below:
Syntax:
<div class="container"> <div class="row"> <div class="col">...</div> <div class="col">...</div> <div class="col">...</div> </div> </div>
Example 1: In this example, we will assign different widths to columns in a row.
Output:
Example 2: In this example, we will assign different ordering and widths to columns in a row.
Output:
Reference: https://getbootstrap.com/docs/5.0/layout/columns/