CSS Vertical-align Property

Posted The: 24/03/2008 At: 0:58

Last Edited: 15/08/2008 At: 18:32

vertical-align allows to align the text vertically.

Possible Values

  • baseline (Default) [baseline of the parent box]
  • middle [Middle of parent element]
  • sub [As subscript]
  • super [As superscript]
  • text-top
  • text-bottom
  • % [A percentage of the "line-height" value "%0" is same as baseline]
  • length ["0cm" is same as baseline]
  • top [top of box; with top of, line box]
  • bottom [bottom of box; with bottom of, line box]
body {
  vertical-align: middle;
}

Inherited? NO!

Comments: [0]

© Brugbart Webdesign