Forum Moderators: open

Message Too Old, No Replies

How do I center my table in IE and Netscape?

I've searched here but can't find the answer

         

Typester

5:07 am on Oct 16, 2002 (gmt 0)

10+ Year Member



Hello,

I'm sure the answer is here somewhere but I can't seem to find it.

I want my table to be centered in the browsers no matter what size screen the user has. Is this possible? I'm using Dreamweaver 4. I'm not using CSS and I'm using pixel measurements, not percentages (which was a design nightmare).

Here is my code:
<table width="760" border="0" height="490" align="center" bgcolor="#000000">
<tr>
<td height="490" valign="middle" align="center">

My table seems to be all over the place depending on the resolution.

Thanks for you help.

pageoneresults

5:11 am on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try wrapping it in a <div> that is centered like this...

Here is my code:
<div align="center>
<table width="760" border="0" height="490" bgcolor="#000000">
<tr>
<td height="490" valign="middle" align="center">
</td>
</tr>
</table>
</div>

Typester

12:57 pm on Oct 16, 2002 (gmt 0)

10+ Year Member



Thanks pageoneresults. It worked. I had to fiddle with my existing code a little bit but I got the result I needed. Always quick answers here at Webmasterworld!