Quackit Logo

FREE Hosting!

With every domain name you register with ZappyHost, you get FREE hosting.

$1.99 Domain Names

With every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99.

CSS vertical-align

Print Version

Also see the full, alphabetical list of CSS properties


The CSS vertical-align property is used for aligning elements vertically (hence "vertical align").

Syntax: vertical-align: <value>
Possible Values:
  • baseline
    Aligns the baseline of the element with it's parent's baseline.
  • middle
  • sub (subscript)
  • super (superscript)
  • text-top
    Aligns the top of the element with the top of the parent element's font.
  • text-bottom
    Aligns the bottom of the element with the bottom of the parent element's font.
  • <percentage>
    Raises or lowers the element by the percentage value. 0% is baseline. Can be a negative value.
  • <length>
    Raises or lowers the element by the value. 0cm is baseline. Can be a negative value.
  • top
    Aligns to the top of the tallest element on the line.
  • bottom
    Aligns to the bottom of the lowest element on the line.
  • inherit
Initial Value: baseline
Applies to: Inline level and table cells
Inherited: No
Media: Visual
Example:
td { vertical-align: text-top }

Also see all CSS properties listed alphabetically


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
               
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!