Site logo

Archived topic

Primary menu - round corners on hovers

6 replies · Started by ammgbr on June 12, 2022

Viewing posts 1–7 of 7

Hello,

I have used the following CSS provided to a previous user for the purpose of creating rounded corners on the primary menu on hover:

.main-navigation .main-nav ul li a:hover {
border-radius: 3px;
}

The issue is when I hover on to a submenu item, the initial menu category no longer has rounded outline.
I would appreciate any input.

Hi there,

Try change your CSS to this:

.main-navigation ul li.menu-item.sfHover a, .main-navigation .main-nav ul li:hover a {
    border-radius: 3px;
}

Thank you Ying, that works :)

May I clarify: what is the maximum px value that can be used? I tried making the hover background thinner but I think it won't go beyond 25px?

Many thanks

Many thanks for you reply, that clarifies this

You’re welcome!

This archived topic is closed to new replies.