peterct07@yahoo.com (Peter Cartwright) wrote:
[color=blue]
>This works in IE6. A horizontal menu made from a table[/color]
Why a table? A menu is a list of links, so a <ul> element would make
more sense.
[color=blue]
>with the space
>created by a td class="gap". All tds are rendered as inline elements
>except for .gap. So links are equidistantly spaced.[/color]
A problem that was only caused by your choice of a table...
[color=blue]
>This is to get
>around the fact that IE5 doesn't recognise margin or padding-left etc.[/color]
Table cells don't have margins. But IE5 does recognise padding-left
for table cells. It was probably setting them to display: inline; that
caused the problems. IIRC, IE5 didn't like padding on any inline
element.
[color=blue]
>It also has the virtue of easily transforming itself to a state
>suitable for background images(tabs). That is remove the inline
>display and give the tds suitable dimensions. As far as I know this is
>the only way to do an automatic menu.[/color]
What do you mean by "automatic"?
[color=blue]
>To get onto the question, does it work in IE5? There's a screenshot of
>how it should appear. Many thanks.
>
>
http://www.sitetype.com/index.php?page=48[/color]
It appears the same in IE 5.01 as in IE6.
However, in Opera 7.23 and Mozilla 1.5 (and I bet quite a few other
browsers as well) the three links appear as a vertical stack. Whoops.
Have a look at
http://www.alistapart.com/articles/taminglists/ for
some ideas.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>