Forums

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

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #175010
    Joejacks
    Participant

    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/

    #175041
    Paulie_D
    Member

    You’re going to be more specific.

    It looks centered to me…did you mean at mobile sizes?

    #175167
    Joejacks
    Participant

    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

    #175270
    Paulie_D
    Member

    @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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.