From: Mark Otto Date: Fri, 23 Dec 2016 21:23:11 +0000 (-0800) Subject: align-self docs X-Git-Tag: v4.0.0-alpha.6~207 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=378aa6667bfe2ccc9f14cd3f767e8b24afc06bf5;p=thirdparty%2Fbootstrap.git align-self docs --- 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.