Forum Moderators: open

Message Too Old, No Replies

Getting a Table to center vertically and horizontally

table positioning...

         

fctoma

4:39 pm on Sep 25, 2003 (gmt 0)

10+ Year Member



Please help...I need to know if there is a way to position a table to be centered vertically and horizontally in any browser for any screen resolution. I have a table that must be 740 wide and it looks great on 800x600...but when at 1020x840 or whatever...there is tons of space on both sides and at the bottom.

MY goal is to find a way that it would be centered no matter what resolution the screen was at.

Any help much appreciated!

Marc_P

5:37 pm on Sep 25, 2003 (gmt 0)

10+ Year Member



First build a single cell table to height=100% and width="100"

Then use these arguments on your single cell : td align="center" valign="middle"

Finally insert your 700 pixel table in the cell

fctoma

6:21 pm on Sep 25, 2003 (gmt 0)

10+ Year Member



DUHHHHHH, Marc, you rock! THANK YOU and looks like it worked out just fine.

Really appreciate the help.

Frank

wkitty42

6:42 pm on Sep 25, 2003 (gmt 0)

10+ Year Member



funny thing, that... that's almost what CSS coders end up doing with divs and for the same needs/reasons ;)