17452 Posts in 4473 Topics by 1971 members
|Go to End|
15 November 2007 at 12:15am
I'm trying to build a horizontal menu using a table:
<% if Menu(2) %>
<% control Menu(2) %>
<td width="???"><a href="$Link">$MenuTitle</a></td>
<% end_control %>
<% end_if %>
However, I am unable to figure out how to determine the width for every column (<td width="???">), if I wanted to have the same width for every menu entry (without knowing the total number of menu entries...)
Can anyone give me a hint on this?
16 November 2007 at 12:15pm
Well, you shouldn't use tables for menus actually...
Why don't you use a ul or ol and float the li's or make them inline, that would be a more modern solution.
16 November 2007 at 7:21pm
I agree with dio5, tables for the navigation! *shudder*. Using a List is a much more semantic way of doing that.
|Go to Top|