[Resolved] pixel error in navigation

Home Forums Support [Resolved] pixel error in navigation

Home Forums Support pixel error in navigation

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #891352
    Marc Witschi

    I have a small error in my menu which drives me crazy 😉 When I hover on the first section of my menu the submenu opens but with some pixels postponed.
    Here a screenshot of my problem:

    https://ibb.co/CbK8vd3

    Can you help me with this?

    #891474
    David
    Staff
    Customer Support

    Hi there,

    sorry i am not sure what the problem is. Is it the parent menu color changing when you hover? Or the rounded corners on the sub menu

    #891488
    Marc Witschi

    Colors are all fine. My problem is that when the submenu opens there is a little cap at the left:
    https://ibb.co/557CrXY

    I’d like to have the submenu open exactly under the main-navigation.

    Hopefully you understand what my problem is.
    Thanks

    #891503
    David
    Staff
    Customer Support

    Ok – try this CSS:

    @media (min-width: 769px) {
        .dropdown-hover .main-navigation:not(.toggled) ul li:hover>ul,
        .dropdown-hover .main-navigation:not(.toggled) ul li.sfHover>ul {
            left: -10px;
            padding-left: 10px;
        }
    }
    #891505
    Marc Witschi

    Thank you very much!

    I changed the amout of pixels and now it’s perfect!

    @media (min-width: 769px) {
        .dropdown-hover .main-navigation:not(.toggled) ul li:hover>ul,
        .dropdown-hover .main-navigation:not(.toggled) ul li.sfHover>ul {
            left: -1.5px;
            padding-left: 2px;
        }
    }
    #891507
    David
    Staff
    Customer Support

    Awesome – glad to be of help and thanks for sharing your final CSS

    #893699
    Marc Witschi

    I actually still got a little problem with my submenu. If I hover on my submenu it adds a square to the main navigation:
    https://ibb.co/Jq7ygYN

    If I then hover on the main navigation again, the square disappears:
    https://ibb.co/YB8ztQ4

    Can you help me with this as well?

    Thanks in advance

    #893869
    David
    Staff
    Customer Support

    Hi there,

    try changing the hover background colors to transparent. You can edit that in Customizer > Colors > Primary Navigation.

    #893881
    Marc Witschi

    awesome, thanks!

    #893929
    David
    Staff
    Customer Support

    You’re welcome

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