Tagged: mega menu
Hello,
I am trying to setup a mega menu. I would like the background of the mega menu to be 100% of the window and keep the links inside the container. Like they have on https://www.progressive.com/ under their Insurance dropdown etc.
Would that be possible?
Thanks!
Hey Pappasdg,
Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Best regards,
Jordan
Sure
Hi,
try this code inside Quick CSS field:
.avia_mega_div {
width: 817% !important;
right: -549% !important;
}
and adjust as needed. Hope this helps!
Best regards,
Andy
Hey Andy,
Tried it out however its not working. It’s still not 100% width of the window.
Thanks,
Hi,
as far as I can see it, it got much better. So now you just need to adjust the values in my code, until you’re happy.
Best regards,
Andy
Hi,
I think it should be yes, what screen resolutions did you check it on?
Best regards,
Rikard
Hi @Rikard!
Well first of all I have troubles to find the exact size to fit my own screen resolution (1440px). Then, I realize it’s not responsive…
Merci :)
Hi,
you need to play with different values in my code and if you want to have different results on different screen sizes then you need to add some media queries as well:
@media only screen and (max-width: 767px) {
.avia_mega_div {
width: 817% !important;
right: -549% !important;
}}
For more information about media queries: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
Best regards,
Andy