• Resolved 6sky

    (@6sky)


    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 https://6sky.in and sorry for my bad english.

    Thanks for help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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?

    Thread Starter 6sky

    (@6sky)

    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…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘show menu in center’ is closed to new replies.