aboutsummaryrefslogtreecommitdiff
path: root/css.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-10-13 19:10:17 -0700
committerMark Otto <[email protected]>2013-10-13 19:10:17 -0700
commited12d41caed288b47f1f225115503d3086d69e6a (patch)
tree6d8a1e2c9ebb1d87e64cdda85896fd13111e5292 /css.html
parenta43696467f4bb4ae1abae82453a1a543894d6766 (diff)
downloadbootstrap-ed12d41caed288b47f1f225115503d3086d69e6a.tar.xz
bootstrap-ed12d41caed288b47f1f225115503d3086d69e6a.zip
add docs example for #10938 to show responsive column clearing in grid
Diffstat (limited to 'css.html')
-rw-r--r--css.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/css.html b/css.html
index 653ede7cc..63cd74b1d 100644
--- a/css.html
+++ b/css.html
@@ -314,6 +314,22 @@ base_url: "../"
<h3 id="grid-responsive-resets">Responsive column resets</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>
+<div class="bs-docs-grid">
+ <div class="row show-grid">
+ <div class="col-xs-6 col-sm-3">
+ .col-xs-6 .col-sm-3
+ <br>
+ Resize your viewport or check it out on your phone for an example.
+ </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>
+</div>
{% highlight html %}
<div class="row">
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>