Grid System

[lead]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. [/lead]

Example: Mobile and desktop

Don’t want your columns to simply stack in smaller devices? Use the extra small and medium device grid classes by adding .col-xs-* .col-md-* to your columns. See the example below for a better idea of how it all works.

[row][column xs=”12″ sm=”6″ md=”8″]

.col-xs-12 col-md-8

[/column][column xs=”6″ md=”4″]

.col-xs-6 .col-md-4

[/column] [/row]

[row][column xs=”6″ md=”4″]

.col-xs-6 .col-md-4

[/column][column xs=”6″ md=”4″]

.col-xs-6 .col-md-4

[/column][column xs=”6″ md=”4″]

.col-xs-6 .col-md-4

[/column] [/row]

[row][column xs=”6″]

.col-xs-6

[/column][column xs=”6″]

.col-xs-6

[/column] [/row]

 

Example: Mobile, tablet, desktops

Build on the previous example by creating even more dynamic and powerful layouts with tablet .col-sm-* classes.

[row][column xs=”12″ sm=”6″ md=”8″]

.col-xs-12 .col-sm-6 .col-md-8

[/column][column xs=”6″ sm=”6″ md=”4″]

.col-xs-6 .col-sm-6 .col-md-4

[/column] [/row]

[row][column xs=”6″ sm=”4″ md=”4″]

.col-xs-6 .col-sm-4 .col-md-4

[/column][column xs=”6″ sm=”4″ md=”4″]

.col-xs-6 .col-sm-4 .col-md-4

[/column][column xs=”6″ sm=”4″ md=”4″]

.col-xs-6 .col-sm-4 .col-md-4

[/column] [/row]

[row][column xs=”6″]

.col-xs-6

[/column][column xs=”6″]

.col-xs-6

[/column] [/row]