Showing posts with label Bootstrap grid system. Show all posts
Showing posts with label Bootstrap grid system. Show all posts

Sunday, 22 August 2021

Bootstrap Grid (Grid System)

The bootstrap grid system uses a series of containers, rows, and columns to layout and aligns content. It’s built with a flexbox and is fully responsive. Bootstrap grid allows up to 12 columns across the page.
If you do not want to use all 12 columns individually, you can group the columns together to create wider columns.
The grid system is responsive, and the columns will be re-arranged automatically as per the screen size.
Make sure that the sum adds up to 12 or fewer. It is not required that you use all 12 available columns.

Grid Classes

The Bootstrap grid system has the following classes:
.col- (extra small devices - screen width less than 576px)
.col-sm- (small devices - screen width equal to or greater than 576px)
.col-md- (medium devices - screen width equal to or greater than 768px)
.col-lg- (large devices - screen width equal to or greater than 992px)
.col-xl- (xlarge devices - screen width equal to or greater than 1200px)

The classes above can be combined to create more dynamic and flexible layouts.

Each class scales up, so if you wish to set the same widths for sm and md, you only need to specify sm.

Bootstrap Grid (Grid System)