![]() |
VOOZH | about |
Bootstrap5 Columns Horizontal alignment is used to align the columns horizontally so that we can define how the columns will be displayed in a single line.
Column Horizontal Alignment classes used:
Syntax:
<div class="row justify-content-*"> <div class="col-4"> ... </div> <div class="col-4"> ... </div> </div>
Example 1: In this example, we will learn about horizontal alignment from start and center.
Output
Example 2: In this example, we will learn about horizontal alignment from the end and even alignment.
Output
Reference: https://getbootstrap.com/docs/5.0/layout/columns/#horizontal-alignment