WordPress.org

Ready to get started?Download WordPress

Forums

Leaf
Centering Header Menue (3 posts)

  1. skofield
    Member
    Posted 1 year ago #

    Hi,

    is there a possibility to center the header menu? I don't have enough menupoints right now and it's aligned left. You can look at it here: http://geese.lupus.uberspace.de/

  2. JR
    Member
    Posted 1 year ago #

    it's not the best solution, but this does work..

    if u add more menu points, remove the width: 750px..

    .main-navigation ul {
        display: block;
        margin: 0 auto;
        padding: 1rem 0;
        text-indent: 0;
        width: 750px;
    }
  3. Andrew
    Forum Moderator
    Posted 1 year ago #

    It is annoying that you have to edit a width every time you add/edit/remove menu items.

    You could cheat and write;

    .main-navigation ul {
        margin: 0 auto;
        display: table;
    }

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.