Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Resolved] Navigation border on hover

Home Forums Support [Resolved] Navigation border on hover

Home Forums Support Navigation border on hover

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #316718
    sjoerd89

    Is it possible to just show a border around the menu item when hovering over it? At the moment i can only get a background color with the customizer but i would love to have just a small border around an navigation item i hover over. This would be for main navigation and sub items.

    Thanks 🙂

    #316739
    sjoerd89

    Extra: Why is there a white border in between my navigation and content.
    http://www.sjoerdjonker.nl
    pass: sjoerdjuh

    #316745
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    .main-navigation .main-nav ul li a{
        border: 2px solid transparent;
    }
    .main-navigation .main-nav ul li a:hover {
        border: 2px solid #ffffff;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know.

    #316746
    Leo
    Staff
    Customer Support

    For the margin below navigation, try using disabling the content title using the Disable Elements meta box:
    https://docs.generatepress.com/article/disable-elements-overview/

    #317088
    sjoerd89

    Thanks alot!

    #317226
    Leo
    Staff
    Customer Support

    You’re welcome!

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