Example
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 .container. <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>
- Rows are wrappers for columns. Each column has horizontal padding (called a gutter) for controlling the space between them.
- In a grid layout, content must be placed within columns and only columns may be immediate children of rows.
- Column classes indicate the number of columns you’d like to use out of the possible 12 per row.
- Grid breakpoints are based on minimum width media queries, meaning they apply to that one breakpoint and all those above it.