Jump to content

Fixing header on mobile

Go to solution Solved by tuanphan,

Recommended Posts

A site I'm working on has a centred navigation that's been giving me issues. It was stacking, so I added code to make it full width. I had to try various code options because most would send the header button off the side, but got it to work.

Unfortunately, the nav is now really messed up on mobile. It displays the desktop nav plus a hamburger menu. I'd like it to only show the hamburger. But I need to be able to keep the full width on desktop without shifting the button location.

Here's the site: https://tangerine-hypersphere-hh79.squarespace.com/?password=bike

CSS I'm using:

.header-layout-branding-center-nav-center .header-title-nav-wrapper .header-nav {
    width: 100vw;
    display: block;
    position: absolute;
    bottom: -2vw;
    left: 50%;
    transform: translateX(-50%);

Thanks in advance!

Link to comment
  • Replies 2
  • Views 185
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.