Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS dropdown menu not working in IE6/IE7 Re: CSS dropdown menu not working in IE6/IE7

#64397
daGUY
Member

I figured it out…I had the text of the root menu item just as plain text with the <ul> for the submenu next to it. Regular text is an inline element by default, so the submenu was appearing to the side of it rather than underneath. So I wrapped the root menu text in a div to turn it into a block element, and that pushed the submenu underneath where I wanted it.

So actually, wouldn’t IE6 and IE7 be exhibiting the correct behavior here (putting the submenu off to the side rather than underneath)? I mean, if the text wasn’t a block element, it shouldn’t have been occupying its own line like it was in the other browsers…

Anyway, yeah, it’s fixed :)