• Resolved hizde1

    (@hizde1)


    What CSS can be used to add in horizontal lines to divide each of the category options on my secondary menu?

    I want to have a small horizontal line to separate my different fashion product headings eg. New In | Accessories | Brands | Inspiration | Community

    Thank you for your help in advance!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi

    If you don’t already have a custom.css you should install a plugin like custom CSS plugin then add the following to the custom css area.

    #nav-main li + li::before {
        content: " | ";
    display: block;
    margin-top: 10px;
    float: left;
    }
    
    #nav-main li li + li::before {
        content: " ";
    }

    Try adding this to your custom css box in the theme options:

    #nav-second ul.sf-menu>li>a {
    border-right: 1px solid #ddd;
    }

    Kadence Themes

    With this:

    #nav-second ul.sf-menu>li:last-child > a {
    border: none;
    }

    Thread Starter hizde1

    (@hizde1)

    Hi Kadence,

    Thanks for this, it’s worked!!

    Do you know if it’s possible to have a slightly shorter line, so it’s not the full height of the secondary menu??

    Thank you once again!

    You could try this?

    #nav-second ul.sf-menu>li>a:before {
    content: "";
    display: block;
    height: 20px;
    float: right;
    border-right: 1px solid #ddd;
    }
    #nav-second ul.sf-menu>li:last-child >a:before {
    border:none;
    }
    Thread Starter hizde1

    (@hizde1)

    That is perfect! Just what I was looking for.

    Thank you so much

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add in dividers/horizontal lines into secondary menu’ is closed to new replies.