CSS Vertical-Align Property

CSS 1

CSS 2

CSS 3

Yes Yes Yes

Description

Specifies the vertical positioning of an inline content box.

Syntax

vertical-align: [value];

Possible values

  • baseline
  • bottom
  • inherit
  • [length]
  • middle
  • [percentage]
  • sub
  • super
  • text-bottom
  • text-top
  • top

Initial Value

baseline

Applies To

Inline level and table cells

Inherited

No

Media

Visual

Example

img.logo {vertical-align: top;}


View All CSS Properties