New Landing How can we help? Themeforest Theme Support Dante Menu is not centered when using small computers 13" and below

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #103669
    sakirose
    Member
    Post count: 96

    On our website, when you make your browser smaller or use a smaller computer (13″ and below), the menu is no longer centered. I have the following CSS in place to center the menu and it works on my computer which is a 15″ laptop.

    /* spacing below menu text */
    .inner-page-wrap.no-top-spacing {
    margin-top: -30px !important;
    }

    /* menu font size */
    nav.std-menu .menu li {
    font-size: 20px;}

    /* menu position and padding */
    #main-navigation > div {
    margin-right: 100px;
    padding-top: 20px;
    }

    /* menu li item right margin spacing – space between items */
    nav#main-navigation .menu > li {
    margin-right: 60px !important;
    }

    #103679
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    That code wouldn’t work responsively. The easiest way to center the menu is to remove that css, and just use this:

    nav#main-navigation ul.menu {
    float: none;
    text-align: center;
    width: 100%;
    }
    #main-navigation .menu li {
    float: none;
    }

    Hope that helps.

    – Ed

    #103811
    sakirose
    Member
    Post count: 96

    Thanks Ed. That works better overall, but the menu is still shifted left a little. Can you advise?

    #103831
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    This additional css bellow may work for these lower resolutions.

    
    nav#main-navigation ul.menu{
    margin-left:25px!important;
    }
    

    -Rui

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register