From 378aa6667bfe2ccc9f14cd3f767e8b24afc06bf5 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 23 Dec 2016 13:23:11 -0800 Subject: [PATCH] align-self docs --- docs/utilities/flexbox.md | 43 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/docs/utilities/flexbox.md b/docs/utilities/flexbox.md index 59d732f1c7..8359bbe93b 100644 --- a/docs/utilities/flexbox.md +++ b/docs/utilities/flexbox.md @@ -149,10 +149,9 @@ Use `justify-content` utilities on flexbox containers to change the alignment of
...
{% endhighlight %} - ## Align items -Use `align-items` utilities on flexbox containers to change the alignment of flex items on the cross axis (the y-axis to start, x-axis if `flex-direction: column`). Choose from `start` (browser default), `end`, `center`, `baseline`, or `stretch`. +Use `align-items` utilities on flexbox containers to change the alignment of flex items on the cross axis (the y-axis to start, x-axis if `flex-direction: column`). Choose from `start`, `end`, `center`, `baseline`, or `stretch` (browser default).
@@ -190,6 +189,46 @@ Use `align-items` utilities on flexbox containers to change the alignment of fle
...
{% endhighlight %} +## Align self + +Use `align-self` utilities on flexbox items to individually change their alignment on the cross axis (the y-axis to start, x-axis if `flex-direction: column`). Choose from the same options as `align-items`: `start`, `end`, `center`, `baseline`, or `stretch` (browser default). + +
+
+
Flex item
+
Aligned flex item
+
Flex item
+
+
+
Flex item
+
Aligned flex item
+
Flex item
+
+
+
Flex item
+
Aligned flex item
+
Flex item
+
+
+
Flex item
+
Aligned flex item
+
Flex item
+
+
+
Flex item
+
Aligned flex item
+
Flex item
+
+
+ +{% highlight html %} +
Aligned flex item
+
Aligned flex item
+
Aligned flex item
+
Aligned flex item
+
Aligned flex item
+{% endhighlight %} + ## 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.