Grid System
grid
Introduction
Bootstrap includes a responsive, mobile first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes predefined classes for easy layout options, as well as powerful mixins for generating more semantic layouts.
Grid systems are used for creating page layouts through a series of rows and columns that house your content. Here's how the Bootstrap grid system works:
.container
(fixed-width) or.container-fluid
(full-width) for proper alignment and padding..row
and.col-xs-4
are available for quickly making grid layouts. Less mixins can also be used for more semantic layouts..rows
..col-xs-4
..col-lg-*
class is not present.Media Queries
We use the following media queries in our Less files to create the key breakpoints in our grid system.
We occasionally expand on these media queries to include a
max-width
to limit CSS to a narrower set of devices.