Title: mega menu dropdown width &amp; padding changes every other hover/click
Last modified: September 4, 2024

---

# mega menu dropdown width & padding changes every other hover/click

 *  [Trisha Johnson](https://wordpress.org/support/users/atomicdrivex/)
 * (@atomicdrivex)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/mega-menu-dropdown-width-padding-changes-every-other-hover-click/)
 * This is an issue that I see happening across multiple sites I manage that use
   the Divi theme.
 * What’s happening is if you hover over a mega menu, the width & padding are showing
   properly. If you hover off of that menu and back onto it again, the width changes
   and the padding is missing. This continues to toggle each time you hover over
   the menu.
 * See it in action here: [https://drive.google.com/file/d/1XQEOlfEjx3srz4kNWj4nyQ99K7xm4YRQ/view?usp=sharing](https://drive.google.com/file/d/1XQEOlfEjx3srz4kNWj4nyQ99K7xm4YRQ/view?usp=sharing)
 * In the Mega Menu settings, I have the Outer width set as ‘body’ and the Inner
   width set as ‘.et_pb_row_1_tb_header’. I need the inner width to be the same 
   width as that row in the header/navigation.
 * What is happening here? How can I resolve? Should I be doing something differently?
   Should I just force the width with CSS?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/mega-menu-dropdown-width-padding-changes-every-other-hover-click/#post-17996312)
 * Hi Trisha,
 * Thanks for reporting this. Unfortunately I can’t replicate it here, but I have
   made a change to the code that I hope will fix it.
 * Please could you install the WP Rollback plugin, then use it to install the “
   Trunk” version of Max Mega Menu? Please let me know if it fixes the issue and
   if so I’ll include it in the next update.
 * Regards,
   Tom
 *  Thread Starter [Trisha Johnson](https://wordpress.org/support/users/atomicdrivex/)
 * (@atomicdrivex)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/mega-menu-dropdown-width-padding-changes-every-other-hover-click/#post-18008662)
 * Apologies for the delay — I’ve rolled back to the trunk version, but that does
   not seem to help the issue.
 *  Thread Starter [Trisha Johnson](https://wordpress.org/support/users/atomicdrivex/)
 * (@atomicdrivex)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/mega-menu-dropdown-width-padding-changes-every-other-hover-click/#post-18008667)
 * It seems like I can force the CSS width to always be 100vw, but I don’t want 
   to have to do that.
 *     ```wp-block-code
       mega-menu-wrap-primary-menu #mega-menu-primary-menu>li.mega-menu-megamenu>ul.mega-sub-menu {  width: 100vw !important;}
       ```
   
 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/mega-menu-dropdown-width-padding-changes-every-other-hover-click/#post-18016632)
 * Hi Trisha,
 * Thanks for trying that. I’ll try again to replicate the issue here (until then
   I can only make informed guesses about the issue), and see if I can come up with
   a fix. In the mean time your workaround is a good solution.
 * Regards,
   Tom

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘mega menu dropdown width & padding changes every other hover/click’ is
closed to new replies.

 * ![](https://ps.w.org/megamenu/assets/icon-128x128.png?rev=1489843)
 * [Max Mega Menu](https://wordpress.org/plugins/megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/megamenu/reviews/)

## Tags

 * [divi](https://wordpress.org/support/topic-tag/divi/)
 * [width](https://wordpress.org/support/topic-tag/width/)

 * 4 replies
 * 2 participants
 * Last reply from: [megamenu](https://wordpress.org/support/users/megamenu/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/mega-menu-dropdown-width-padding-changes-every-other-hover-click/#post-18016632)
 * Status: not resolved