Mainmenu should be justified to the width of the website

  • Author
    Posts
  • #40515

    Hi,

    i would like to justify all items of the mainmenu to the width of the site. I tried custom CSS:
    #access a {justify-content: space-between; }
    but that didn’t work.

    Any suggestions?

    f

    #40585
    Zed
    Cryout Creations mastermind

    That CSS bit only works on flex elements, so you’d need to use:

    #access > .menu > ul {
       display: flex;
       justify-content: space-between;
    }

    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #40589

    Great, that worked. Thanks!

    f

    #40617

    Oh no, sorry, that destroys responsiveness. Any other idea?

    f

    #40672

    Found the solution myself. Just add one line:

    #access > .menu > ul {
       display: flex;
       justify-content: space-between;
       flex-wrap: wrap;
    } 
Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Mainmenu should be justified to the width of the website’ is closed to new replies.