Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1073363

    createmotive
    Participant

    Hi –

    I would like to center stack the logo and hamburger header elements on mobile and keep the desktop version inline as is.

    The url is here: cr-nativenations.com

    I’ve attached two images. One is a screen shot of mobile as is, one is a photoshoped example of what I’d like to see: the logo and hamburger relationships adjusted in mobile view, the menu itself intact as is.

    Thanks for your help,

    Daniel

    #1073365

    createmotive
    Participant

    Sorry –

    Missed the proper attachments. Both are attached here.

    #1073381

    Jade
    Moderator

    Hi Daniel,

    Please add this code in the customizer:

    @media (max-width: 980px) {
        .x-brand {
            width: 100%;
            text-align: center;
            margin-bottom: 20px;
        }
    
        .x-navbar-inner {
            text-align: center;
        }
    
        .masthead-inline .x-btn-navbar {
            float: none;
            display: block;
        }
    }

    Hope this helps.

    #1073401

    createmotive
    Participant

    Code did a great job of shifting the logo and hamburger into proper alignment but it moved the menu to a centered display as well.

    (screen shot working rv1 attached)

    Is there an adjustment we can make to have it display with the menu as in the example

    (example attached)

    If it helps, gethopenow.org has a mobile solution that has the exposed menu un-centered with the logo and hamburger stacked.

    Thanks,

    Daniel

    #1073410

    createmotive
    Participant

    To clarify, I would like the exposed menu (after hamburger click) to be left justified and aligned as it was prior to these edits.

    Thanks for all your help! You guys are awesome!

    #1073411

    Jade
    Moderator

    Hi Daniel,

    Please update the code to:

    
    @media (max-width: 980px) {
        .x-brand {
            width: 100%;
            text-align: center;
            margin-bottom: 20px;
        }
    
        .x-navbar-inner {
            text-align: center;
        }
    
        .masthead-inline .x-btn-navbar {
            float: none;
            display: block;
        }
    
        .x-navbar .mobile .x-nav li > a {
            text-align: left;
        }
    }

    Hope this helps.

    #1073418

    createmotive
    Participant

    Thanks – like a charm.

    #1073432

    Jade
    Moderator

    You’re welcome!