Skip to Content


CSS Reference / vertical-align

vertical-align

Sets the vertical alignment of an element. This property is buggy in most common browsers, and is generally not recommended. If you are looking for a way to position text vertically, take a look at the line-height property.

Values:

  • baseline
  • sub
  • super
  • top
  • text-top
  • middle
  • bottom
  • text-bottom
  • length
  • %

Examples:

  1. vertical-align: middle;
  2. vertical-align: bottom;

Browser support:

  • Internet Explorer 4+
  • Netscape 4+
  • Opera 3.5+

Related properties:

back to list



Search

Sponsors

Logo design for $149

Advertise here