...

View Full Version : CSS driven popup menu



whizard
02-11-2005, 12:16 AM
Hi, it's me, AGAIN.

I'm still trying to get a good, semantic layout going, as I know what it really means now. (see my eariler post: why the gaps?)

This time, I'm wondering what a good way to have a CSS nav menu that "pops down" with a sub menu. If you dont know what I mean, go to robowhizards.com/examples/cf and mouseover the menu. I was told that having a JS menu was not a good idea. (once again, see the earlier post)
I have links like this:


a.menu
{
font-family:Arial, Helvetica, sans-serif;
font-size:10pt;
color:#FFFF00;
text-decoration:none;
background:#000066;
}

a.menu:hover
{
font-family:Arial, Helvetica, sans-serif;
font-size:10pt;
color:#000066;
text-decoration:none;
background:#FFFF00;
}

If I made a span, could I use the visibility:hidden attribute to make iut show up when the user mouses over the link?

Dan

rmedek
02-11-2005, 12:30 AM
Try this article (alistapart.com/articles/dropdowns/). It might be a bit much to start from, but after you're done you'll feel like an html genius. :)

whizard
02-11-2005, 12:47 AM
wow. this is awesome (problem resolved)

Thanx

Dan



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum