Highlighted

How to centralise my menu

Participant ,
Apr 15, 2020

Copy link to clipboard

Copied

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

Add the below selector to your css styles:

 

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

TOPICS
Code, How to

Views

652

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to centralise my menu

Participant ,
Apr 15, 2020

Copy link to clipboard

Copied

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

Add the below selector to your css styles:

 

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

TOPICS
Code, How to

Views

653

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 15, 2020 0
LEGEND ,
Apr 15, 2020

Copy link to clipboard

Copied

Add the below selector to your css styles:

 

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 15, 2020 0
higgsyd LATEST
Participant ,
Apr 15, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 15, 2020 0