diff --git a/docs/_data/nav.yml b/docs/_data/nav.yml index 9e3e553679..f89a136f8c 100644 --- a/docs/_data/nav.yml +++ b/docs/_data/nav.yml @@ -66,6 +66,7 @@ - title: Sizing and positioning - title: Spacing - title: Typography + - title: Vertical align # - title: Extend # pages: diff --git a/docs/utilities/vertical-align.md b/docs/utilities/vertical-align.md new file mode 100644 index 0000000000..09ae115b08 --- /dev/null +++ b/docs/utilities/vertical-align.md @@ -0,0 +1,37 @@ +--- +layout: docs +title: Vertical alignment +group: utilities +--- + +Change the alignment of elements with the [`vertical-alignment`](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align) utilities. Please note that vertical-align only affects inline, inline-block, inline-table, and table cell elements. + +Choose from `.align-baseline`, `.align-top`, `.align-middle`, `.align-bottom`, `.align-text-bottom`, and `.align-text-top` as needed. + +With inline elements: + +{% example html %} +baseline +top +middle +bottom +text-top +text-bottom +{% endexample %} + +With table cells: + +{% example html %} +
baseline | +top | +middle | +bottom | +text-top | +text-bottom | +