View Full Version : Centering this Silly table


JDRh4l
06-04-2003, 07:10 PM
Heyas.. I know the answer is prolly obvious, but I am a bit lost.

I have this table that I want cented in the middle of a page, from both the top and the side, but it doesnt seem to want to work. Instead it sticks to the very left of the page, centered about half way down. Any suggestions would be great. ^_^


<div align="center">
<TABLE style="position:absolute; top:center;" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="450" HEIGHT="450">
<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="450" HEIGHT="450">
where no fish can swim, where no fish can swim. Blah. Blah.
</TD>
</TR>
</TABLE>
</div>

JDRh4l
06-05-2003, 12:06 AM
I don't see _why_ this had to be removed actually... The question is regarding it's positioning, which I am using css for. But no matter..

zangerbanger
06-05-2003, 01:33 AM
You can use absolute positioning:


<table style="position:absolute; top:50%; left:50%;">