Site logo

[Resolved] Change background color nav button

Home Forums Support [Resolved] Change background color nav button

Home Forums Support Change background color nav button

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2109234
    Renske

    Hi there,

    I want to style my nav button.

    Currently, the non-hover text is white and the border is white, but the text is green. I want the text to be white, too.
    And I want a hover effect: green background, green border and white text.

    what CSS do I need to accomplish this?

    Thanks!

    #2109286
    David
    Staff
    Customer Support

    Hi there,

    try swapping your CSS for this:

    .main-navigation .main-nav ul li.nav-button a {
        border: 2px solid #fff;
        color: #fff !important;
        line-height: 35px;
    }
    .main-navigation .main-nav ul li.nav-button:hover a {
        border: 2px solid #78c16c;
        background-color: #78c16c !important;
        line-height: 35px;
    }
    #2109289
    Renske

    Excellent! Thank you, sir! 🙂

    #2109291
    David
    Staff
    Customer Support

    You’re welcome!

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