aboutsummaryrefslogtreecommitdiff
path: root/css.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-14 23:11:38 -0700
committerMark Otto <[email protected]>2013-08-14 23:11:38 -0700
commit6e26f846cdb96060afb0530f1d34fdfc2a11f83d (patch)
tree8e0cc50da5b590d4452fa2bc157c74f44e48304b /css.html
parent622fe05ff4c7f4110d5de8d4648505cfbf7349b2 (diff)
downloadbootstrap-6e26f846cdb96060afb0530f1d34fdfc2a11f83d.tar.xz
bootstrap-6e26f846cdb96060afb0530f1d34fdfc2a11f83d.zip
fix #9454: add grid docs about responsive column clearing
Diffstat (limited to 'css.html')
-rw-r--r--css.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/css.html b/css.html
index b4da415c1..a2cfd5f74 100644
--- a/css.html
+++ b/css.html
@@ -326,6 +326,21 @@ base_url: "../"
<p><a class="btn btn-danger" target="_blank" href="http://examples.getbootstrap.com/grid/">More grid examples</a></p>
</div>
+ <h3 id="grid-responsive-clearing">Responsive column clearing</h3>
+ <p>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 <code>.clearfix</code> and our <a href="../css#responsive-utilities">responsive utility classes</a>.</p>
+{% highlight html %}
+<div class="row">
+ <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
+ <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
+
+ <!-- Add the extra clearfix for only the required viewport -->
+ <div class="clearfix visible-xs"></div>
+
+ <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
+ <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
+</div>
+{% endhighlight %}
+
<h3 id="grid-offsetting">Offsetting columns</h3>
<p>Move columns to the right using <code>.col-md-offset-*</code> classes. These classes increase the left margin of a column by <code>*</code> columns. For example, <code>.col-md-offset-4</code> moves <code>.col-md-4</code> over four columns.</p>
<div class="bs-docs-grid">