Raises or lowers the content by a percentage of the line height. Text-bottom Vertically aligns the content to the bottom of its parent. Text-top Vertically aligns the content to the top of its parent. Super Vertically aligns the content to superscript. Sub Vertically aligns the content to subscript. ![]() Middle Vertically aligns the content to the middle of its parent. Vertically aligns the content with the baseline of its parent. : Percentages refers to the ‘line-height’ of the element itself Overview table Initial value baseline Applies to inline-level and ‘table-cell’ elements If this property is used on table-cells it controls the vertical alignment of content of the table cell. The vertical-align property controls how inline elements or text are vertically aligned compared to the baseline.
0 Comments
Leave a Reply. |