Closed LiamW closed 11 years ago
Do you have this up somewhere so I can see the styles you have applied? I haven't looked at the superfish plugin yet but if it positions it's dropdowns absolutely, you may need to add position: relative
to the root <li>
items.
Ok, I see what's going on. FF seems to have a bug when displaying absolutely positioned elements with a parent that has display: table-cell
applied to it. One work around would be to set tableDisplay: false
to your horizontalNav
call. This will just force the plugin to manually set the widths of the parent list items instead of using the display: table
method.
$('#your_selector').horizontalNav({
tableDisplay : false
});
Let me know if that works for you. I'll be looking for a CSS solution to get the display table method to work with drop-downs in the mean time.
Yup that does the job.
The alignment isn't as nice, as I'm seeing some padding (lack thereof) issues when doing it this way, but I'll tinker with this myself. The biggest issue was the FF dropdowns.
Thanks for the super fast response and solution.
Cheers,
Throw a #mainNav > ul > li { text-align: center; }
in there and that should fix your padding issue :)
Glad I could help!
I haven't tested with any other dropdown plugin, but with Superfish in FireFox for Mac, the dropdowns are aligned far left no matter what top menu you hover over, making the menu unusable as you can't hover down to the sub menu.