Site logo

Archived topic

Help with some CSS for NAV Menu Height

5 replies · Started by Stacey on June 17, 2020

Viewing posts 1–6 of 6

Hi

If I view the site on smaller screen size - 2 of the menu items wrap over 2 lines.

Can you please help me with some CSS to get the background colour of the other menu items to expand to be the same height so that it is even.

When I change the Menu height in the customiser it is also increasing the ones that are wrapping and looks worse.

This is what it looks on a larger screen https://www.dropbox.com/s/vqe479ph3k28kyi/w4p-menu1.png?dl=0

And with the issue happening here https://www.dropbox.com/s/7elrm6lygpp4ysv/w4p-menu2.png?dl=0

Thanks for any guidance or suggestions.

Hi there,

This CSS you've added is causing the issue:

.nav-aligned-right .main-navigation .menu>li, .nav-aligned-center .main-navigation .menu>li {
    margin: 0 3px;
    width: 15%;
}

Using the width property is usually not good for responsive purpose.

Thank you - I've found a solution to get it all sorted. Appreciate your help

No problem :)

This archived topic is closed to new replies.