Menu Bar – Autofill across container width

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #5423
    Tom Booth


    You`ve helped in the past to get the primary menu centered – however I was wondering if it was possible to get it to size the width of each top menu item to be the equal as each other so that it fills up the entire menu width leaving no space at either end?

    Thanks in advance,



    It depends on how many parent menu items you have. For example if you have 5 then you divide 100% by 5 to get 20%.

    .nav-main {
        width: 100%;
    .nav-main > li {
        width: 20%;
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WordPress Themes’ is closed to new topics and replies.