From 6e26f846cdb96060afb0530f1d34fdfc2a11f83d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 14 Aug 2013 23:11:38 -0700 Subject: [PATCH] fix #9454: add grid docs about responsive column clearing --- _includes/nav-css.html | 1 + css.html | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/_includes/nav-css.html b/_includes/nav-css.html index 2024883708..d4acb7bc53 100644 --- a/_includes/nav-css.html +++ b/_includes/nav-css.html @@ -20,6 +20,7 @@
  • Ex: Stacked-to-horizonal
  • Ex: Mobile-desktop
  • Ex: Mobile, tablet, desktop
  • +
  • Responsive column clearing
  • Offset columns
  • Nested columns
  • Column ordering
  • diff --git a/css.html b/css.html index b4da415c15..a2cfd5f74a 100644 --- a/css.html +++ b/css.html @@ -326,6 +326,21 @@ base_url: "../"

    More grid examples

    +

    Responsive column clearing

    +

    With the four tiers of grids available you're bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a .clearfix and our responsive utility classes.

    +{% highlight html %} +
    +
    .col-xs-6 .col-sm-3
    +
    .col-xs-6 .col-sm-3
    + + +
    + +
    .col-xs-6 .col-sm-3
    +
    .col-xs-6 .col-sm-3
    +
    +{% endhighlight %} +

    Offsetting columns

    Move columns to the right using .col-md-offset-* classes. These classes increase the left margin of a column by * columns. For example, .col-md-offset-4 moves .col-md-4 over four columns.