Vertical-align Definition & Usage

Posted 6 years, 3 months ago at 3:01 am. 2 comments

The vertical-align property is supported in all major browsers.

Note: The value “inherit” is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports “inherit”.


Property Values

Value Description
length Raises or lower an element by the specified length.

Negative values are allowed

% Raises or lower an element in a percent of the “line-height”

property. Negative values are allowed

baseline Align the baseline of the element with the baseline of the parent element.

This is default

sub Aligns the element as it was subscript
super Aligns the element as it was superscript
top The top of the element is aligned with the top of the

tallest element on the line

text-top The top of the element is aligned with the top of

the parent element’s font

middle The element is placed in the middle of the parent element
bottom The bottom of the element is aligned with the

lowest element on the line

text-bottom The bottom of the element is aligned with the

bottom of the parent element’s font

inherit Specifies that the value of the vertical-align property

should be inherited from the parent element

2 Comments

  1. Nelson Seelbinder May 19th 2013

    Internet Explorer 8 is the last version of Internet Explorer to be supported on Windows XP and Windows Server 2003; the next version, Internet Explorer 9, is supported only on Windows Vista, Windows Server 2008 R2, and Windows 7 operating systems.:*..

    http://healthwellnessbook.com

    Be well

  2. i would like to be able to i want to thank that. the idea helped me quite a lot which has a project i done. initially my partner and i tried just using simplexml you just read the 400mb xml document in addition to effectively, php had not been having your. now it might develop 20k documents but it really removes them if it’s completed as well as every little thing is definitely doing work fantastic. many thanks!
    nike air max 1 homme http://www.balanous.com/chanson/


Leave a Comment/Question