Skip to main content
higgsyd
Inspiring
April 15, 2020
Answered

How to centralise my menu

  • April 15, 2020
  • 2 replies
  • 1046 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 is closed to new replies. Start a new post to keep the conversation going.
Correct answer osgood_

Add the below selector to your css styles:

 

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

2 replies

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