New Landing How can we help? Atelier custom CSS menu hover question

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #305074
    wtflovelife
    Member
    Post count: 113

    Hi! I put the front-end un/pw above in place of the admin un/pw so you can see what I am talking about in the below.

    I have added the following code to the custom CSS so that I have a different “hover” effect on my menu

    nav .menu > li.current-menu-item > a {
        border-radius: 40px;
        -webkit-border-radius: 40px;
        border: 1px solid #6ac21d;
    }
    
    .full-center #main-navigation ul.menu > li > a:hover {
        border-radius: 40px;
        -webkit-border-radius: 40px;
        border: 1px solid #6ac21d;
    }
    
    .full-center #main-navigation ul.menu > li > a {
        height: 35px;
        line-height: 30px;
        margin: 0 2px;
    }

    But if you look at the site – you can see it “jumps” slightly when you hover. What did I do wrong? THANK YOU

    #305252
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    It seems that extra pixel from the border, not sure how to stop it.
    Will forward it to our head developer.

    -Rui

    #305254
    wtflovelife
    Member
    Post count: 113

    Thanks so much! Standing by 🙂

    #305299
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Change the last of those 3 to this:

    .full-center #main-navigation ul.menu > li > a {
        height: 35px;
        line-height: 30px;
        margin: 0 2px;
        border: 1px solid transparent;
    }

    That should do it!

    – Ed

    #305318
    wtflovelife
    Member
    Post count: 113

    It’s perfect! thank you so much guys!

    #305319
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Thanks Ed.

    -Rui

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register