mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
add docs example for #10938 to show responsive column clearing in grid
This commit is contained in:
parent
a43696467f
commit
ed12d41cae
1 changed files with 16 additions and 0 deletions
16
css.html
16
css.html
|
@ -314,6 +314,22 @@ base_url: "../"
|
||||||
|
|
||||||
<h3 id="grid-responsive-resets">Responsive column resets</h3>
|
<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>
|
<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 %}
|
{% highlight html %}
|
||||||
<div class="row">
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue