Tagged: mega menu, mega menu images
-
AuthorPosts
-
May 22, 2020 at 1:28 pm #1215221
I have a website that’s been in development for a while. (I’ve included a link to its temporary location.)
There’s an issue with the mega menu (that appears when you hover over Treatments).
There are five submenus, each of identical column widths.
When the browser viewport width is 1304px or above, all the images appear at full-size (200px wide) and there is perfect vertical alignment of all menu headers and text.
However, when the viewport width is less than 1304px, the images in the two outer columns (ie. far-left and far-right) remain at 200px wide, but the images in the three inner columns become progressively reduced as the viewport becomes narrower. Once the viewport becomes 1232px wide or less, the two outer images then start reducing in size too, but never matching the three inner ones.
The problem this introduces, is the vertical misalignment of the menu contents, as the two outer ones no longer match the inner ones and the menu content in those appears to have stepped down a little in relation to the three inner menus.
(Note: All five column containers’ pixel widths remain perfectly matched no matter the viewport width.)My client’s viewing conditions are on browser windows less than than the magic 1304px, so they are always seeing the vertical misalignment – and want it fixed.
I’d be grateful if you can tell me what file setting to adjust, or CSS change to make so I can keep my client happy and finally get the site launched.
Thanks very much for your time and any suggestions you can make.
May 24, 2020 at 5:28 pm #1215818Hey ThisTime,
Could you please attach some screenshots of the issue?
Best regards,
VictoriaMay 24, 2020 at 5:47 pm #1215826Hi Victoria
Thanks for getting back to me.
I did some more troubleshooting last night and I’ve established a workaround. Which is presumably why you might not be seeing the problem – which is good! I’ve also had word back from my client that the problem appears to be fixed for her too. So I’m pleased about that too.The fix for me, was to add the following to the General Styling > Quick CSS panel:
.avia_mega_menu_columns_first { padding-left: 15px !important; }
.avia_mega_menu_columns_last { padding-right: 15px !important; }Additional Note:
In earlier development, in order to get consistent column widths in the mega menu, I had previously added:
li.avia_mega_menu_columns_5 { width: 20% !important; }Now, both of these changes, appear to have given me what I want.
Hopefully, they will help other people too, if they’re experiencing similar issues.Victoria, if you still want to see screenshots let me know, but perhaps there’s no longer any need.
Thanks very much for offering to help.
May 25, 2020 at 5:09 am #1215944Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Mega Menu with Images – Vertical Alignment Problem’ is closed to new replies.