Centering Vertically On-Screen

Discussion in 'Web Design & Coding' started by ~2C~, Jul 28, 2003.

  1. ~2C~

    ~2C~ Guest

    Hi,

    I'm trying to figure out using some coding how to center a table vertically on a html page after figuring out the resolution.

    Any ideas?
     
  2. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Something like this should work.
    Code:
    <table style="height:100%;">
    <tr><td style="vertical-align:middle;">
    
    [i]// Your stuff here //[/i]
    
    </td></tr>
    </table>