Adding a drop down menu
Mike E.
7 posts
|
I’m using tabbed navigation menus on my site. I’d like to add a drop down menu to the ‘products’ tab, something like Widget1, Widget2, Widget3, etc. I’ve tried to get it to work but I’m just not getting it. Here’s a very stripped down version of the site: When the mouse moves over the rectangular ‘products’ box, a drop down menu should appear. Any help would really be appreciated. Thanks, |
Christophe P...
48 posts
|
Have a look at the SCTI website I did a while back, which does what you want. It uses semantic markup for the menu (nested lists) and JavaScript to react to mouseover/mouseout’s by hiding/showing the sublists. CSS positions the menus. The script ( ‘HTH |
Mike E.
7 posts
|
Hi Christophe, Thanks for the reply. I think I understand what you’re saying. The problem is I don’t know CSS well enough to grab the relevant bits from the site you recommend. I’m having trouble integrating it with the CSS on my site. I’m really new at this. I’ve tried several times to make it work on my site, but I end up screwing up my site. Mike |
Christophe P...
48 posts
|
Hey Mike, Essentially, you should try and style your menu items so that they appear in the proper positions by default, all shown. Use a first-level list for the top navbar, and inner lists inside the The markup would go like this:
Then you should style those using a
When it renders well on all browsers you want to support, add the inline hiding and event-based ‘HTH |
4 posts, 2 voices
