The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Center navigation menu – not working when adding margin 0 auto
Hi
I am trying to center my navigation on the screen. I have set it to
.navbar-nav { margin: 0 auto; margin-top: 25px; }
but it is still showing left aligned on the page. Can anyone see what I need to add to the CSS to ensure that the navigation is centered on the screen
The page can be viewed at http://idvaughan.co.uk/sample/
You’re going to be more specific.
It looks centered to me…did you mean at mobile sizes?
Thanks both solved it using display: table
The only other issue I am having is when viewing on an Ipad 2 the large images on the carousel are distorted and not showing correctly. Any ideas on what could be causing this. On an iphone 5s they its looking fine
@Joejacks
[MOD COMMENT]
We seem to have solved the original issue.
If you have a different issue it would be preferable to start a new thread with a dedicated subject to target the answers you need.
Thanks