WordPress.org

Forums

Responsive
center menu (5 posts)

  1. nicoservide
    Member
    Posted 1 year ago #

    Hello,

    I made a special template for the home page of a site using this great template. In that page I'm trying to center the menu, but I cannot target it properly via CSS.
    I'm using the header menu.

    Shoudn't this do it?

    .main-nav {
    clear: both;
    margin: auto;
    }

    Thanks!

  2. Andrew
    Nuh uh moderator
    Posted 1 year ago #

  3. nicoservide
    Member
    Posted 1 year ago #

    Thanks Andrew,

    It was just that I didnt know to which class I should give the "width and margin" properties.

    It worked like this:

    .main-nav {
    width:245px;
    clear: both;
    margin-left: auto;
    margin-right: auto;
    }
    Have a nice day.

  4. Jitendra Mishra
    Cyberchimps Support Rep
    Posted 1 year ago #

    Sorry, we do not monitor these forums, please use the official forum:

    http://cyberchimps.com/forum/free/responsive/

    Thanks

  5. akedv
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic