Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't Play Nice With Superfish Dropdown in FireFox #5

Closed
LiamW opened this issue Jul 26, 2012 · 4 comments
Closed

Doesn't Play Nice With Superfish Dropdown in FireFox #5

LiamW opened this issue Jul 26, 2012 · 4 comments
Labels

Comments

@LiamW
Copy link

LiamW commented Jul 26, 2012

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.

@sebnitu
Copy link
Owner

sebnitu commented Jul 26, 2012

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.

@sebnitu
Copy link
Owner

sebnitu commented Jul 26, 2012

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.

@LiamW
Copy link
Author

LiamW commented Jul 26, 2012

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,

@sebnitu
Copy link
Owner

sebnitu commented Jul 26, 2012

Throw a #mainNav > ul > li { text-align: center; } in there and that should fix your padding issue :)

Glad I could help!

@sebnitu sebnitu closed this as completed Aug 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants