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).
...
...
@@ -151,6 +160,15 @@ Use `align-items` utilities on flexbox containers to change the alignment of fle
<divclass="d-flex align-items-stretch">...</div>
{% endhighlight %}
Responsive variations also exist for `align-items`.
{% for bp in site.data.breakpoints %}
-`.align-items{{ bp.abbr }}-start`
-`.align-items{{ bp.abbr }}-end`
-`.align-items{{ bp.abbr }}-center`
-`.align-items{{ bp.abbr }}-baseline`
-`.align-items{{ bp.abbr }}-stretch`{% endfor %}
## 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).
...
...
@@ -191,6 +209,15 @@ Use `align-self` utilities on flexbox items to individually change their alignme
Responsive variations also exist for `align-self`.
{% for bp in site.data.breakpoints %}
-`.align-self{{ bp.abbr }}-start`
-`.align-self{{ bp.abbr }}-end`
-`.align-self{{ bp.abbr }}-center`
-`.align-self{{ bp.abbr }}-baseline`
-`.align-self{{ bp.abbr }}-stretch`{% endfor %}
## Auto margins
Flexbox can do some pretty awesome things when you mix flex alignments with auto margins.
...
...
@@ -314,7 +341,7 @@ Change how flex items wrap in a flex container. Choose from no wrapping at all (
{% example html %}
{% endexample %}
Responsive variations also exist for `.flex-nowrap` and `.flex-wrap`.
Responsive variations also exist for `flex-wrap`.
{% for bp in site.data.breakpoints %}
-`.flex{{ bp.abbr }}-nowrap`
...
...
@@ -333,6 +360,13 @@ Change the _visual_ order of specific flex items with a handful of `order` utili
</div>
{% endexample %}
Responsive variations also exist for `order`.
{% for bp in site.data.breakpoints %}
-`.order{{ bp.abbr }}-first`
-`.order{{ bp.abbr }}-last`
-`.order{{ bp.abbr }}-unordered`{% endfor %}
## 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.
...
...
@@ -478,3 +512,12 @@ Use `align-content` utilities on flexbox containers to align flex items *togethe