Click to See Complete Forum and Search --> : Drop down menu


dmach8
01-25-2003, 03:20 PM
Hi, I have created a dropdown menu with a table and using hidden and visible style properties to show on mouseover and mouseout events. My question is anything under the menus, mainly a link isn't active, I've played with zo order and not sure how to get this to the top to become active, any help would be apreciated. Thanks Steve

AdamGundry
01-25-2003, 03:37 PM
You could try using the display property instead of visibility, which will make the element take up no space when "display: none" is set. "Visibility: hidden" hides the element, but it still takes up the same space.

Adam

dmach8
01-26-2003, 10:22 AM
Display: none keeps it hidden, then how would i go about showing that element? Its probably staring at me and I'm missing the obvious

meow
01-26-2003, 10:30 AM
You probably want 'display: block'.
http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-display

I'm wondering what you mean when you say nothing under the menu is active though? Under as in lower down on the page or under as in, well, under. :D

dmach8
01-26-2003, 10:35 AM
I did this with a hidden table and cells. Visibility makes the menu open, the effect is perfect, but like it was said I guess it takes up space so anything right below (Under) the menu that contains a link won't work, you cant click on it. So I have had to move anypart of a page with a link down the page, sometimes making the page look out of sorts. The display property makes things jump all over the place and I'm not sure if its because I used a table or not. Thanks

meow
01-26-2003, 10:45 AM
Oh, I understand now.

If you toggle display you probably have to position stuff in one way or another since the elements that have 'display: none' don't take up space.