[Resolved] Primary menu – round corners on hovers

Home Forums Support [Resolved] Primary menu – round corners on hovers

Home Forums Support Primary menu – round corners on hovers

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2250875
    ammgbr

    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.

    #2251244
    Ying
    Staff
    Customer Support

    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;
    }
    #2251313
    ammgbr

    Thank you Ying, that works 🙂

    #2251375
    ammgbr

    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

    #2251487
    Fernando
    Customer Support

    Hello there,

    The max would be radius of an imaginary circle that may be created in relevance to the corners of your container.

    In your container, the max radius would be 22.5px since the height of your container is 45px.

    See this for a more in-depth explanation: https://stackoverflow.com/questions/29966499/border-radius-in-percentage-and-pixels-px-or-em#:~:text=Pixel%20and%20other%20units

    Hope this clarifies!

    #2251579
    ammgbr

    Many thanks for you reply, that clarifies this

    #2251581
    Fernando
    Customer Support

    You’re welcome!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.