From 62a129184d144de67349ff300a315c42dadc8712 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 18 Oct 2016 19:15:58 -0700 Subject: Add vertical-align utilities - Adds six new utils for vertical-align property - Documents the additional classes in the utils docs --- docs/_data/nav.yml | 1 + docs/utilities/vertical-align.md | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 docs/utilities/vertical-align.md (limited to 'docs') diff --git a/docs/_data/nav.yml b/docs/_data/nav.yml index 9e3e55367..f89a136f8 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 000000000..8e03e58a6 --- /dev/null +++ b/docs/utilities/vertical-align.md @@ -0,0 +1,33 @@ +--- +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 %} + + + + + + + +
baselinetopmiddlebottomtext-toptext-bottom
+{% endexample %} -- cgit v1.2.3