![]() |
VOOZH | about |
Bootstrap 5 Grid System Responsive classes offer six tiers (xs, sm, md, lg, xl) to customize column sizes, enabling the creation of responsive layouts. This allows seamless adaptation to various screen sizes for optimal user experience.
Bootstrap 5 Grid system Responsive Options:
| Concept | Description |
|---|---|
| All breakpoints | When you need a particularly sized column, you can use this component of responsive classes. This provides .col and .col* classes to specify a numbered class. |
| Stacked to horizontal | To create a basic grid system that starts out stacked and becomes horizontal, you can use the set of .col-sm-* classes. |
| Mix and match | Simply stack in some grid tiers to your columns. Use a combination of different classes for each tier as per the need. |
| Row columns | Use the row columns classes .row-cols-* to quickly create basic grid layouts or to control your card layouts and override when needed at the column level. |
Example 1: In this example we demonstrates Bootstrap 5's responsive grid system, with columns stacking on mobile. One column is full-width, and the other is half-width on larger screens.
Output:
Example 2: In this example we are showcases Bootstrap 5's responsive grid system with different column layouts. Columns adjust based on screen size, offering flexibility in designing layouts.
Output: