]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Document how to break equal width cols to multiple rows
authorMark Otto <markdotto@gmail.com>
Tue, 27 Dec 2016 22:05:24 +0000 (14:05 -0800)
committerMark Otto <markd.otto@gmail.com>
Tue, 27 Dec 2016 22:14:49 +0000 (14:14 -0800)
Fixes #21287

docs/layout/grid.md

index 6537f70a13cc122e6abc4b3517894f63856fd071..056561b271d5dd8855a1d6151f412b732dd9a188 100644 (file)
@@ -230,6 +230,22 @@ Using the `col-{breakpoint}-auto` classes, columns can size itself based on the
 {% endexample %}
 </div>
 
+### Equal-width multi-row
+
+Create equal-width columns that span multiple rows by inserting a `.w-100` where you want the columns to break to a new line. Make the breaks responsive by mixing the `.w-100` with some [responsive display utilities]({{ site.baseurl }}/utilities/display-property/).
+
+<div class="bd-example-row">
+{% example html %}
+<div class="row">
+  <div class="col">col</div>
+  <div class="col">col</div>
+  <div class="w-100"></div>
+  <div class="col">col</div>
+  <div class="col">col</div>
+</div>
+{% endexample %}
+</div>
+
 ## Responsive classes
 
 Bootstrap's grid includes five tiers of predefined classes for building complex responsive layouts. Customize the size of your columns on extra small, small, medium, large, or extra large devices however you see fit.