How to divide sub menu

Home Forums WordPress How to divide sub menu

This topic contains 3 replies, has 2 voices, and was last updated by  Mad@Coding 1 week, 5 days ago.

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

    Burmankakuli
    Participant

    How to divide sub menu items into 2parts. ?? with out any plugin? using plugin making website low. Please help me with code?

    #1269

    Mad@Coding
    Moderator

    Hi Burmankakul,

    For dividing your submenu into two equal pasts use css. With Css you can achieve thet.

    #1270

    Burmankakuli
    Participant

    Okay please can you help me with coding?

    #1271

    Mad@Coding
    Moderator

    Hi Burmankakul,

    Sure, Firstly find out your submenu id or class name.

    Using it’s identifier increase the width of submenu to 200%, it’s initially was 100%. Let’s double the width. so you can divide the submenu into two parts.

    .sub-menu ul.sub-menu li {
    display: inline-block;
    float: left;
    width: 200px;
    }
    .sub-menu ul.sub-menu li:nth-child(odd) {
    float: left;
    }
    .sub-menu ul.sub-menu li:nth-child(even) {
    float: right;
    }

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Pasham Technology © 2018 Pasham Technologies