[Support request] CSS help to add border to the top of the submenu

Home Forums Support [Support request] CSS help to add border to the top of the submenu

Home Forums Support CSS help to add border to the top of the submenu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1570945
    Stacey

    Hi

    I’ve copied the CSS from this post https://generatepress.com/forums/topic/how-to-show-bold-underline-on-hover-at-primary-navigation-menu/

    To create the underline under my menu items.

    I would like to add the same green thick border at the top of the submenu when you hover on them. At the moment it looks off as the underline is the width of the main nav menu item.

    Website is here: https://clwills.swish-websites.com/

    Thanks for your help.

    #1571011
    Ying
    Staff
    Customer Support

    Hello Stacey,

    Try this css, it will add a boarder on top of your sub menu.

    .menu ul.sub-menu {
        border-top: 4px solid #4c9777;
    }
    #1571294
    Stacey

    Thank you that worked perfectly

    #1571860
    Ying
    Staff
    Customer Support

    No problem 🙂
    Glad to help!

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