Skip to main content
higgsyd
Inspiring
April 15, 2020
Answered

How to centralise my menu

  • April 15, 2020
  • 1 reply
  • 1036 views

Can any of you kind souls show me how to move this menu into the middle of the page please?  I have tried the margin 0 auto thing on both the nav tag and also on the .menu class.  After fiddling around for a couple of days it still sticks resolutely to the far left edge!  The page is at: http://v45.ancestry.higgsy.co.uk/menu3.html Thanks

This topic has been closed for replies.
Correct answer osgood_

Add the below selector to your css styles:

 

nav {
display: flex;
justify-content: center;
background-color: #515f9c;
}

1 reply

osgood_Correct answer
Legend
April 15, 2020

Add the below selector to your css styles:

 

nav {
display: flex;
justify-content: center;
background-color: #515f9c;
}

higgsyd
higgsydAuthor
Inspiring
April 15, 2020

brilliant! osgood saves the day again, many thanks, David