Forum Moderators: open

Message Too Old, No Replies

Table not right

         

FiRe

10:28 pm on May 19, 2006 (gmt 0)

10+ Year Member



I cant figure out whats wrong, the "main" section should be centered, but it just stays on the right of the page all with a tiny width :-S

---

<table width="99%" align="center" cellpadding="0" cellspacing="0" border="0" style="border:0px;">
<tr><td width="100%" valign="top">

<table width="100%" cellspacing="0" cellpadding="5">
<tr><td align="center">

<!-- top menu -->
<img src="images/logo.gif" alt="Site">

</td></tr>
</table>
<br>
</td></tr>

<tr><td width="19%" align="left" valign="top">

<!-- left menu -->
<table width="19%" cellspacing="0" cellpadding="5">
<tr><td class="menu">Members</td></tr>
<tr><td>
Welcome :-)
</td></tr>
</table>
<br>

<!-- left menu2 -->
<table width="19%" cellspacing="0" cellpadding="5">
<tr><td class="menu">Quick Links</td></tr>
<tr><td>
<p>blah</p>
</td></tr>
</table>
</td>

<td width="80%" align="center" valign="top">

<!-- main -->
<table width="80%" cellspacing="0" cellpadding="5">

<tr><td class="menu">Main</td></tr>
<tr><td>
<p>hi</p>
</td></tr>
</table>

</td></tr>
</table>
</body>
</html>

Lobo

11:14 pm on May 19, 2006 (gmt 0)

10+ Year Member



it is your <td> widths if your table is 99% then the td should be 50% 49%

FiRe

11:40 pm on May 19, 2006 (gmt 0)

10+ Year Member



hasnt made any difference :-S

Lobo

11:47 pm on May 19, 2006 (gmt 0)

10+ Year Member



sorry it's a horrible layout .. but in there lies your problem ... 180% in to 99% does not go

FiRe

11:50 pm on May 19, 2006 (gmt 0)

10+ Year Member



how would you recode it so I have 2 tables on the left (nav) and main table in the center?

LifeinAsia

11:51 pm on May 19, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Change some tables to border=1 and all will become apparent. :)

redstorm

7:20 am on May 21, 2006 (gmt 0)

10+ Year Member



"cool" idea, lifeinasia

teenwolf

3:48 am on May 28, 2006 (gmt 0)

10+ Year Member



you are missing a /tr. but then you'll also have to enter a new /td within the new tr. sticky me if you need explanation.