VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bookstrap-5-columns-alignment/

⇱ Bootstrap 5 Columns Alignment - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Columns Alignment

Last Updated : 23 Jul, 2025

In bootstrap 5, we can use flexbox alignment utilities to align our columns horizontally and vertically without using CSS. The following are the possible alignment ways:

  • Vertical alignment: For aligning the column vertically we use the flexbox utilities to get desired alignment system.
  • Horizontal alignment: For aligning the column Horizontally we use the flexbox utilities to get desired alignment system.
  • Column wrapping: In column wrapping, If extra than 12 columns are placed within a single row, every institution of more columns will, as one unit, wrap onto a brand new line.
  • Column breaks: In column break, for breaking a column to a new line in flexbox add an element with a width of 100% wherever you want to wrap your columns to a new line.

Example 1: Here is an example of vertical alignment.

Output:

👁 Image
 

Example 2: Here is an example of a column break.

Output:

👁 Image
 

Reference: https://getbootstrap.com/docs/5.0/layout/columns/#alignment

Comment

Explore