Tagged: navigation menu
Good morning
I wonder if you might be able to help me please.
I have a client who wants to include 7 long service titles in the main navigation menu. I had created the items as dropdown menus, however, she wants them as part of the main navigation.
Is there a quick CSS code that I can add, which would wrap the individual service page titles on 2-3 lines?
Many thanks
Ivana
Hey Ivana,
First you will need to know the menu item ID for each one, on my test page it is #menu-item-3040 then I use this css:
#menu-item-3040 {
overflow: visible;
max-width: 120px;
}
#menu-item-3040 a {
line-height: 20px;
align-items: center;
display: flex;
text-align: center;
}
and it now looks like this:
Please give this a try, if you need further help please link to your page so we can examine.
Best regards,
Mike
Many thanks. I will give it a go.