PDA

View Full Version : Justifying menu items across a 100% width table


AshleyQuick
04-30-2003, 06:41 PM
Why are they bunched together? I'm sure there's an obvious fix but I'm more accustomed to using fixed width tables/sites.

Ash

<table align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="basenavgray" width="12.5%">About</td>
<td class="basenavgray" width="12.5%">What's New</td>
<td class="basenavgray" width="12.5%">Retail</td>
<td class="basenavgray" width="12.5%">Marketing</td>
<td class="basenavgray" width="12.5%">Services</td>
<td class="basenavgray" width="12.5%">Rentals</td>
<td class="basenavgray" width="12.5%">Contact Us</td>
<td class="basenavgray" width="12.5%">Home</td>
</tr>
</table>

Roy Sinclair
04-30-2003, 06:47 PM
You don't have a width specified on the containing table so it's no larger than it has to be. In this case all the cells will be the same size as the largest one and thus the table will only be as large as all of the TDs combined.

AshleyQuick
04-30-2003, 07:07 PM
Duh me. Thanks.