Compatibility
Framework is supported by all modern browsers, back as far as IE9 and Android 2.
Basics
Start by adding an element with a class of .row
. This will create a horizontal block to contain vertical columns. Then add elements with a .column
class within that row. Specify the widths of each column with the .small-#
, .medium-#
, and .large-#
classes (based off the 12-column grid count).
.row
max-width: 81.250rem/1300px
.small
= standard smartphone screen width with smallest screen support from 320px+
.medium
= standard tablet screen width starting from 40em/640px
.large
= standard desktop screen width starting from 64em/1024px
Example
Scale your browser screen width to see demo below in action.
small-12
This column is full width on all screens
small-12
medium-6
This column is full width on small screen but double column on medium to large screens
small-12
medium-6
This column is full width on small screen but double column on medium to large screens
small-6
large-4
This column is double column on small screen but triple column on medium to large screens
small-6
large-4
This column is double column on small screen but triple column on medium to large screens
small-12
large-4
This column is full width on small screen but triple column on medium to large screens. Great for odd number groupings.
small-12
medium-3
This column is full width on small screen but 25% medium to large screens
small-12
medium-9
This column is full width on small screen but 75% on medium to large screens
small-10 small-centered
This column is centered and not full width
Block Grid
Block grids are a shorthand way to create equally-sized columns. Add a class of the format .[size]-up-[n] to change the number of columns within the row. By default, the max number of columns you can use with block grid are 8. Adding the .column-block class to columns will apply a bottom margin equal to the width of gutters.
Example
Scale your browser screen width to see demo below in action. Small = 2 column; Medium = 3 column; Large = 4 column