Jump to content

How do I prevent the header's navigation links from overflowing on desktop?

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution

You can use a CSS code like this

@media screen and (max-width:1200px) and (min-width:900px) {
.header-burger {
    display: flex !important
}

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

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

 

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
5 hours ago, tuanphan said:

You can use a CSS code like this

@media screen and (max-width:1200px) and (min-width:900px) {
.header-burger {
    display: flex !important
}

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

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

 

Awesome!

This worked almost right out of the box. I just had to play around with the min-width and set it to (min-width:500px) instead.

Thanks, tuanphan! You're one of the best helpers on this forum.

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.