Jump to content

Button in nav getting cut off on narrow screens

Recommended Posts

  • Replies 10
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

13 hours ago, tuanphan said:

You can add this to Website > Website Tools > Custom CSS to fix problem

.header-title-nav-wrapper {
    flex: 1 0 50% !important;
}
.header-nav-list {
	flex-wrap: nowrap !important;
}

 

Thanks for that suggestion! Unfortunately, though it fixed the button-being-cut-off issue, now all the menu items overlap each other on smaller screens.

Is there a way to get the hamburger menu to show up before that happens?

Link to comment
11 hours ago, AgnesK said:

Thanks for that suggestion! Unfortunately, though it fixed the button-being-cut-off issue, now all the menu items overlap each other on smaller screens.

Is there a way to get the hamburger menu to show up before that happens?

You can check to see which screen sizes do you see problems & Use this code like this

@media screen and (min-width:990px) and (max-width:1100px) {
.header-title-nav-wrapper {
    flex: 1 0 50% !important;
}
.header-nav-list {
	flex-wrap: nowrap !important;
}
}

IN this case, suppose button cut off on 990px to 1100px

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 9/19/2023 at 6:05 PM, AgnesK said:

Yes, I think that would probably be best. Nothing else I've tried seems to be working. 

Use this CSS. This code will run from 901px to 1100px, you adjust these values

 /* Force burger */
@media screen and (min-width: 901px) and (max-width:1100px) {
    .header-menu {
        left:unset;
        width:50%;
    }
     .header-burger {
    display: flex !important
}

.header--menu-open .header-menu {
    opacity: 1 !important;
    visibility: visible !important
}

.header-nav,.header-actions {
    visibility: hidden !important
}
}

50% here is burger menu width

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

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.