[Support request] Centering hamburger icon on mobile

Home Forums Support [Support request] Centering hamburger icon on mobile

Home Forums Support Centering hamburger icon on mobile

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1617559
    Mira

    Hi,

    My desktop site has Title and Tagline aligned left, menu floating right. But I would like my mobile header to have everything centered: title, tagline below, hamburger menu below that.

    I managed to center the title, tagline, and mobile menu items using this:


    @media
    (max-width: 767px) {
    .main-navigation .main-nav ul li a {
    text-align:center;
    }
    .main-title {
    text-align:center;
    }
    .site-description {
    text-align:center;
    }
    }

    But I cannot get the hamburger icon to center, even using some of the code found on other threads. It is still aligned right on mobile. Can you please help? This is something I often need to do on my sites.

    http://box2075.temp.domains/~eatherf2/

    Thanks!

    #1617587
    Ying
    Staff
    Customer Support

    Hi Mira,

    Try this CSS:

    nav#mobile-menu-control-wrapper {
        margin-left: auto;
        margin-right: auto;
    }

    Let me know ๐Ÿ™‚

    #1617590
    Mira

    Yep, that worked! THANK YOU!!!

    #1617707
    Ying
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.