Vertical Centre with CSS

To center some text vertically, this site has a few options:
http://www.jakpsatweb.cz/css/css-vertical-center-solution.html


A quicker way to centre a single line of text is to set the height and line-height the same:
height: 5em;
line-height: 5em;
From: http://wellstyled.com/css-single-line-vertical-centering.html
Related Scribbles:
  • CSS Notes and Quick Examples


  • ID: 660
    Author:
    leonard
    Date Updated:
    2005-07-11 17:16:40
    Date Created:
    2005-07-11 17:16:40

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> Vertical Centre with CSS
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.