Today, it is difficult to find a responsive grid as complete and efficient as the one proposed by boostrap. minstyle.io therefore integrates the bootstrap grid (V5). The complete documentation is available here.
How it works
Bootstrap’s grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully responsive. Below is an example and an in-depth look at how the grid comes together.
<div class="container"> <div class="row"> <div class="col-sm"> One of three columns </div> <div class="col-sm"> One of three columns </div> <div class="col-sm"> One of three columns </div> </div> </div>
The above example creates three equal-width columns on small, medium, large, and extra large devices using our predefined grid classes. Those columns are centered in the page with the parent
While Bootstrap uses ems or rems for defining most sizes, pxs are used for grid breakpoints and container widths. This is because the viewport width is in pixels and does not change with the font size.
See how aspects of the Bootstrap grid system work across multiple devices with a handy table.
|Max container width||None (auto)||540px||720px||960px||1140px|
|# of columns||12|
|Gutter width||30px (15px on each side of a column)|
Utilize breakpoint-specific column classes for easy column sizing without an explicit numbered class like
Bootstrap’s grid includes five tiers of predefined classes for building complex responsive layouts. Customize the size of your columns on extra small, small, medium, large, or extra large devices however you see fit.
Use flexbox alignment utilities to vertically and horizontally align columns. Internet Explorer 10-11 do not support vertical alignment of flex items when the flex container has a min-height as shown below.
Use .order- classes for controlling the visual order of your content. These classes are responsive, so you can set the order by breakpoint (e.g.,
.order-1.order-md-2). Includes support for 1 through 12 across all five grid tiers.
To nest your content with the default grid, add a new .row and set of
.col-sm-* columns within an existing
.col-sm-* column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).