Appearance:
vertical-align: <value>
Possible Values:
baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage>
Initial Value:
baseline
Applies to:
Inline elements
Inherited:
No
The value may be a percentage relative to the element's line-height property, which would raise the element's baseline the specified amount above the parent's baseline. Negative values are permitted.
The value may also be a keyword. The following keywords affect the positioning relative to the parent element:
baseline (align baselines of element and parent)
middle (align vertical midpoint of element with baseline plus half the x-height--the height of the letter "x"--of the parent)
sub (subscript)
super (superscript)
text-top (align tops of element and parent's font)
text-bottom (align bottoms of element and parent's font)
top (align top of element with tallest element on the line)
bottom (align bottom of element with lowest element on the line)
IMG.middle { vertical-align: middle }
IMG { vertical-align: 50% }
.exponent { vertical-align: super }
<img src="http://www.eluk.co.uk/images/Me.jpg" style="vertical-align:baseline;">This is a picture of me.
<img src="http://www.eluk.co.uk/images/Me.jpg" style="vertical-align:middle;">This is a picture of me.
<img src="http://www.eluk.co.uk/images/Me.jpg" style="vertical-align:top;">This is a picture of me.
This is a picture of me.
This is a picture of me.
This is a picture of me.