Quackit Logo

10GB Webmaster Package

Unique, quality digital content ready to be resold.

Includes:

  • Over 29,000 Ebooks
  • Over 7,000 Website templates
  • Over 11,000 Fonts
  • Over 39,000 Logos
  • Over 1,000 Cell Phone Games
  • Over 3,000 Cell Phone Images
  • Over 21,000 Ring Tones
  • ...and much more!
Get your 10GB webmaster package now!

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!

FREE Hosting!

With every domain name you register with ZappyHost, you get FREE (ad supported) hosting.

PLUS you get:

  • FREE Website Builder
  • FREE Blog
  • FREE Starter Web Page
  • FREE Email Account
  • & much more! (Total value $123 for FREE!)
Get your FREE hosting today! >>