diff --git a/docs/_includes/nav-css.html b/docs/_includes/nav-css.html index 6783468cd3..534c9c2edd 100644 --- a/docs/_includes/nav-css.html +++ b/docs/_includes/nav-css.html @@ -13,7 +13,9 @@ Grid system
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.
+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.
Multiple device grids, columns, offsets, and column ordering.
+See how aspects of the Bootstrap grid system work across multiple devices with a handy table.
Bootstrap's grid system includes three levels of column sizing—phone, tablet, and desktop and up. Use each level in conjunction with the others for more control, or stick to the desktop classes for single-column, stacked mobile views.
- -On mobile devices, the grid starts out stacked. Above 768px, it becomes horizontal as media queries kick in to apply float
s and width
s. To create a basic grid layout, wrap a series of .col-lg-*
elements within a .row
. As this is a 12-column grid, each .col-lg-*
spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent), even at mobile resolutions.
Be sure to checkout the full-page grid example as well.
+Using a single set of grid classes, you can create a basic grid system that starts out stacked on mobile and tablet devices before becoming horizontal on desktop devices.
Don't want your columns to simply stack in smaller devices? Use the small device grid system by adding .col-*
classes to the existing .col-lg-*
ones. See the example below for a better idea of how it all works.
Build on the previous example by creating even more dynamic and powerful layouts with tablet .col-sm-*
classes.
We dive into more grid layouts in a separte page, free of chrome and documentation to better show you the power of the grid.
+ +Move columns to the right using .col-offset-*
classes. These classes increase the left margin of a column by *
columns. For example, .col-offset-4
moves .col-lg-4
over four columns.
Use the small device grid classes, like .col-sm-6
, to create columned layouts on phone and tablet devices (anything under 768px). Offsets, pushes, and pulls are not available with the small grid at this time.