WordPress.org

Ready to get started?Download WordPress

Forums

Skirmish
[resolved] show menu in center (3 posts)

  1. 6sky
    Member
    Posted 1 year ago #

    How can i put my menu in center of the page?

    I tried several things, but all looked pretty bad. Another question is if it's possible to resize or center the menu relativ of the window size. I would like my menu to let no free space on the right or left.

    I don't think it's important, but my homepage is http://6sky.in and sorry for my bad english.

    Thanks for help!

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    To centre the menu, apply to your <ul> element the following CSS;

    display: table;
    margin: 0 auto;

    I would like my menu to let no free space on the right or left.

    Wouldn't this contradict the centred menu?

  3. 6sky
    Member
    Posted 1 year ago #

    Thanks a lot! I'll try it tomorrow. 😊

    As an alternative to center, like the full justification in ms word. (I think it's that called) Maybe it would look great when i use the full width of the screen, but i don't like a second line in the menu. Therefor it has to be relativ to the window.

    I hope you understand what i mean, i'm still pretty bad in english. Still learning...

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags