Site logo

[Support request] side border on main menu.

Home Forums Support [Support request] side border on main menu.

Home Forums Support side border on main menu.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2485375
    Jusung

    Hello.

    I want to make side border on menu like thies

    |a|b|c|d|e|

    Can you help 🙂

    #2485390
    Fernando
    Customer Support

    Hi Jusung,

    Can you try adding this through Appearance > Customize > Additional CSS?:

    div#primary-menu > ul > li:after {
        content: "";
        height: 16px;
        width: 1px;
        position: absolute;
        background-color: #000000;
        top: 50%;
        right: 0;
        transform: translate(-50%,-50%);
    }
    
    div#primary-menu > ul > li {
        position: relative;
    }
    
    div#primary-menu > ul > li:first-of-type:before {
        content: "";
        height: 16px;
        width: 1px;
        position: absolute;
        background-color: #000000;
        top: 50%;
        left: 0;
        transform: translate(-50%,-50%);
    }
    #2485395
    Jusung

    it works. but as you can see, the tickness of border is different..

    Can you make it the same? I think some border is applied two times and it could be why..?

    #2485405
    Fernando
    Customer Support

    It’s odd. There’s no doubling in the structure, and they have the same widths.

    Can you try this?:

    @media(min-width: 1025px){
        div#primary-menu > ul > li:after {
        content: "";
        height: 16px;
        width: 0.5px;
        position: absolute;
        background-color: #000000;
        top: 50%;
        right: 0;
        transform: translate(-50%,-50%);
    }
    
    div#primary-menu > ul > li {
        position: relative;
    }
    
    div#primary-menu > ul > li:first-of-type:before {
        content: "";
        height: 16px;
        width: 0.5px;
        position: absolute;
        background-color: #000000;
        top: 50%;
        left: 0;
        transform: translate(-50%,-50%);
    }
    }

    I tried changing the width.

    #2485430
    Jusung

    THanks it works now!

    #2485434
    Fernando
    Customer Support

    You’re welcome, Jusung!

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