New! My 44-page ebook "CSS in 44 minutes" is out! 😃
#vertical-align
Defines how an inline or table-cell element aligns vertically.
vertical-align: baseline;
The element is aligned with the baseline of the parent.
vertical-align: sub;
The element is aligned with the subscript baseline of the parent.
vertical-align: super;
The element is aligned with the superscript baseline of the parent.
vertical-align: text-top;
The element is aligned with the top of the parent's element font.
vertical-align: text-bottom;
The element is aligned with the bottom of the parent's element font.
vertical-align: middle;
The element is aligned with the baseline plus half the x-height of the parent.
vertical-align: top;
The element is aligned with the top of the line.
vertical-align: bottom;
The element is aligned with the bottom of the line.