Description

Depending on the value given, sets the position of text within it's own line box (top, bottom), or the position of it's line box within the text line of it's parent (baseline, middle, sub, super, text-bottom, text-top)

See also:

  • Font
  • Font-size
  • Padding
  • Line-height
  • Word-spacing
  • Text-align
Live Example
Play with the code in the textarea below.

Values
length and percentage values or baseline, middle, sub, super, text-bottom, text-top,
Default value
baseline
Introduced in CSS version
1
Applies to elements
inline elements
Inherited
No
Browser Support
BrowsersIEFirefoxSafariOperaChrome
Versions51160.2
Belongs to:

See the full list CSS properties and browser support: CSS Properties