![]() |
VOOZH | about |
Bootstrap 5 Columns Vertical alignment is used to change the alignment of the column's content in the vertical direction.
Bootstrap5 Columns Vertical alignment classes:
Syntax:
<div class="row align-items-start" style="..."> <div class="col"> .... </div> <div class="col"> .... </div> .... </div>
Example 1: In this example, we change the alignment of column items to the start position using align-items-start class.
Output:
Example 2: In this example, we change the alignment of column items to the center and end position using align-items-center, align-items-end class.
Output:
Reference: https://getbootstrap.com/docs/5.0/layout/columns/#vertical-alignment