From 6fb2c18e141109fc8edaec7bfd376a33040ccf57 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 24 Dec 2016 12:33:42 -0800 Subject: [PATCH] add order docs --- docs/utilities/flexbox.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/utilities/flexbox.md b/docs/utilities/flexbox.md index 8359bbe93b..0c0cd5eedc 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
Aligned flex item
{% 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 %} +
+
First flex item
+
Second flex item
+
Third flex item
+
+{% 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.