-
Notifications
You must be signed in to change notification settings - Fork 237
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
:hover text color gets stuck on dropdown menu #241
Comments
Hi, Please see #10 at https://github.com/sorccu/cufon/wiki/FAQ Simo On Apr 23, 2012, at 3:18 AM, miesc wrote:
|
Hi Sorccu, However when I 1st posted my question I had already read and implemented what is mentioned on the FAQs answer number 10. At the time it only solved the problem to the menu items that don't have dropdowns, such as "Partnerships", "Prizes", "Quality" and Contacts, but it didn't solve the problem to LegalDNA and Team, because those have dropdowns. Any further help will be greatly appreciated! Many thanks, |
I fixed this by specifying both the hover color and the not-hover color in the Cufon.replace function like so: Cufon.replace('.menu-item a',{hover: true, color:'#768692', hover:{color:'#404040'} });
Cufon('.current-menu-item a', {color:'#404040'} ); Cufon default is to get values from the stylesheet when just {hover:true} is set. This obviously was creating some sort of problem/bug, so setting both the hover and the color above worked for me. Mind the parens and the quotes, now. They're tricksy. To break it down:
This page was very helpful: https://github.com/sorccu/cufon/wiki/API But I had to dig around and experiment to fix this problem. |
Hi, I have a dropdown menu on my site together with cufon. However, most of times when I mouse over the menu elements, the :hover get's stuck on the blue color, when it should be white.
The website is www.samiranda-legal.com/beta/
Any help would be much appreciated.
Thanks
The text was updated successfully, but these errors were encountered: