Home › Forums › Support › Menu dropdown shakes around and then gets small before you can click on it.
- This topic has 7 replies, 3 voices, and was last updated 5 months, 3 weeks ago by
Alan.
-
AuthorPosts
-
October 5, 2022 at 9:28 am #2364327
Alan
Hello!
I just added some dropdowns to my menus and they shake all over the place when you try to click on them. How do I fix this?
October 5, 2022 at 6:10 pm #2364653Fernando Customer Support
Hi Alan,
You’ll need to remove this line in your Additional CSS:
padding: 0px;
from:
.main-navigation .main-nav ul li a:hover{ color: #fff; background-color: #00a0dd; padding: 0px; border-radius: 200px; border-style: solid; border-width: 2px; border-color: #00a0dd; }
It’s making the button smaller, causing the issue.
October 6, 2022 at 3:04 am #2364991Alan
Thank you so much for your help with this! It is also changing size on Mobile. Is there some code I need to remove for that?
October 6, 2022 at 5:27 am #2365097Alan
I just applied the change and it fixed it for mobile, so we are all set!! Thank you again for your help, Fernando! You are amazing!!
October 6, 2022 at 5:30 am #2365100David
StaffCustomer SupportHi there,
might be worth taking a step back.
Remove this CSS:/*Main Nav Buttons*/ .main-navigation .main-nav ul li a{ padding: 0px; border-radius: 200px; border-style: solid; border-width: 2px; border-color: #00a0dd; } .main-navigation .main-nav ul li a:hover{ color: #fff; background-color: #00a0dd; padding: 0px; border-radius: 200px; border-style: solid; border-width: 2px; border-color: #00a0dd; } .main-navigation .main-nav ul li.current-menu-item:hover > a, .main-navigation .main-nav ul ul li.current-menu-item:hover > a { border: none; color: #fff; background-color: #00a0dd; padding: 0px; border-radius: 200px; border-style: solid; border-width: 2px; border-color: #00a0dd; } .main-navigation .main-nav ul li{ padding: 10px; min-width: 200px; text-align: center; }
and try adding this:
#site-navigation .main-nav ul li a{ border-radius: 100px; border-style: solid; border-width: 2px; border-color: #00a0dd; margin: 5px; text-align: center; } #site-navigation .main-nav ul ul li a { padding: 12px; } #site-navigation .main-nav ul li:hover > a { color: #fff; background-color: #00a0dd; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 6, 2022 at 7:40 am #2365222Alan
Thank you so much, David! I really appreciate your help with this!
October 6, 2022 at 8:00 am #2365366David
StaffCustomer SupportSorry i missed your previous reply … glad to hear you got it working !!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 6, 2022 at 8:21 am #2365389Alan
Thank you, David!!
-
AuthorPosts
- You must be logged in to reply to this topic.