Jump to content

Make nav shrink to fit monitor size?

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Currently, my header nav looks like this on tablets, where the links move to a second line:

image.thumb.png.086ddeca88e4872cfb70b4cb80ce257d.png

 

Is it possible to instead shrink the nav wrapper to still fit on one line on smaller monitors and tablets?

Here's what it looks like on larger screens:
image.thumb.png.3a386aa54ac67c343e151951e93b5be9.png

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

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
Posted

Use this code to Website > Website Tools > Custom CSS

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

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

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

I see problem between 1025px to 1197px so I use this code, you can adjust numbers

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!)

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.