From c4b59fc1caab59fdc0220d8ad1a8b0df00c7fa56 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 15 Aug 2013 20:43:55 -0700 Subject: fixes #9663: third part, document the resets --- css.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'css.html') diff --git a/css.html b/css.html index 64751da93..2b2ffc234 100644 --- a/css.html +++ b/css.html @@ -322,7 +322,7 @@ base_url: "../"

More grid examples

-

Responsive column clearing

+

Responsive column resets

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 %}
@@ -336,6 +336,19 @@ base_url: "../"
.col-xs-6 .col-sm-3
{% endhighlight %} +

In addition to column clearing at responsive breakpoints, you may need to reset offsets, pushes, or pulls. Those resets are available for medium and large grid tiers only, since they start only at the (second) small grid tier.

+{% highlight html %} +
+
.col-sm-5 .col-md-6
+
.col-sm-5 .col-sm-offset-2 .col-md-6 .col-md-offset-0
+
+ +
+
.col-sm-6 .col-md-5 .col-lg-6
+
.col-sm-6 .col-md-5 .col-md-offset-2 .col-lg-6 .col-lg-offset-0
+
+{% 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.

-- cgit v1.2.3