aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-12-24 12:33:42 -0800
committerMark Otto <[email protected]>2016-12-24 14:21:04 -0800
commit6fb2c18e141109fc8edaec7bfd376a33040ccf57 (patch)
tree0113320afc45b44dd4cefb288173ffc51512a79f /docs
parent78ee9f3c3ed06dba013875cf4b9a83da17749de1 (diff)
downloadbootstrap-6fb2c18e141109fc8edaec7bfd376a33040ccf57.tar.xz
bootstrap-6fb2c18e141109fc8edaec7bfd376a33040ccf57.zip
add order docs
Diffstat (limited to 'docs')
-rw-r--r--docs/utilities/flexbox.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/utilities/flexbox.md b/docs/utilities/flexbox.md
index 8359bbe93..0c0cd5eed 100644
--- a/docs/utilities/flexbox.md
+++ b/docs/utilities/flexbox.md
@@ -229,6 +229,18 @@ Use `align-self` utilities on flexbox items to individually change their alignme
<div class="align-self-stretch">Aligned flex item</div>
{% endhighlight %}
+## Order
+
+Change the _visual_ order of specific flex items with a handful of `order` utilities. We only provide options for making an item first or last, as well as a reset to use the DOM order. As `order` takes any integer value (e.g., `5`), add custom CSS for any additional values needed.
+
+{% example html %}
+<div class="d-flex flex-nowrap bd-highlight">
+ <div class="flex-last p-2 bd-highlight">First flex item</div>
+ <div class="p-2 bd-highlight">Second flex item</div>
+ <div class="flex-first p-2 bd-highlight">Third flex item</div>
+</div>
+{% endexample %}
+
## Align content
Use `align-content` utilities on flexbox containers to align flex items *together* on the cross axis. Choose from `start` (browser default), `end`, `center`, `between`, `around`, or `stretch`. To demonstrate these utilities, we've enforced `flex-wrap: wrap` and increased the number of flex items.