Jump to content

Desktop & Mobile Burger

Recommended Posts

Posted

Site URL: https://www.thefourleafcloverproject.com/

Hi CSS Friends!

I've customized a client desktop website, so the menu displays with a custom burger icon. The desktop display looks wonderful, but the mobile display not so much. On the mobile, the custom burger icon is larger than I'd like for it to be and feels off center with the logo centered. Is there a way I can either 1.) reduce the burger size in mobile or 2.) Left Align the currently centered Logo?

Thanks so much.

Screenshot_20241120_100320_Chrome.jpg

  • Replies 1
  • Views 104
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted

@MissTippyTap Hi! You can add this code under Website > Pages > Website Tools > Custom CSS, to left align the header logo and reduce the size of the custom burger image. 

@media screen and (max-width: 767px) {
    #header .header-title a {
        position: relative;
        top: unset;
        left: unset;
        transform: unset;
    }

    #header .burger-inner:after {
        background-size: 70px;
        width: 70px; 
        height: 40px;
    }

    #header .burger-box {
        width: 70px;
        height: 40px;
    }

    #header .header-burger {
        width: 70px;
        flex: 0 0 70px;
        justify-content: center;
    }

    #header .header-title-nav-wrapper {
        flex: 1 0 calc(100% - 70px);
    }
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.