]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add vertical alignment docs for flexbox grid
authorMark Otto <markdotto@gmail.com>
Sat, 6 Feb 2016 09:30:11 +0000 (01:30 -0800)
committerMark Otto <markdotto@gmail.com>
Sat, 6 Feb 2016 09:30:11 +0000 (01:30 -0800)
docs/layout/flexbox-grid.md

index 4ccd37f486554189d93d50b6edee5f72225343db..00097c3cd54219b550c35a563b52f0c785aca7f0 100644 (file)
@@ -69,3 +69,65 @@ Auto-layout for flexbox grid columns also means you can set the width of one col
 </div>
 {% endexample %}
 </div>
+
+## Vertical alignment
+
+Use the flexbox alignment utilities to vertically align columns.
+
+<div class="bd-example-row">
+{% example html %}
+<div class="container">
+  <div class="row flex-items-xs-top">
+    <div class="col">
+      One of three columns
+    </div>
+    <div class="col">
+      One of three columns
+    </div>
+    <div class="col">
+      One of three columns
+    </div>
+  </div>
+  <div class="row flex-items-xs-center">
+    <div class="col">
+      One of three columns
+    </div>
+    <div class="col">
+      One of three columns
+    </div>
+    <div class="col">
+      One of three columns
+    </div>
+  </div>
+  <div class="row flex-items-xs-bottom">
+    <div class="col">
+      One of three columns
+    </div>
+    <div class="col">
+      One of three columns
+    </div>
+    <div class="col">
+      One of three columns
+    </div>
+  </div>
+</div>
+{% endexample %}
+</div>
+
+<div class="bd-example-row bd-example-row-flex-cols">
+{% example html %}
+<div class="container">
+  <div class="row">
+    <div class="col flex-xs-top">
+      One of three columns
+    </div>
+    <div class="col flex-xs-center">
+      One of three columns
+    </div>
+    <div class="col flex-xs-bottom">
+      One of three columns
+    </div>
+  </div>
+</div>
+{% endexample %}
+</div>