Jump to content

Different nav menu item spacing on web vs mobile

Recommended Posts

  • Replies 2
  • Views 473
  • Created
  • Last Reply
2 hours ago, joshroos said:

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

I'm having an issue with the navigation menu item line-height spacing being different from web viewing to mobile. When viewing on desktop the nav items are properly spaced but on mobile the items have very little spacing in-between. Is there a way to target mobile menu item spacing and set a specific line-height for mobile viewing only?

Thanks!

Screen Shot 2021-02-23 at 4.53.38 PM.png

IMG_2652.PNG

You can try this Custom CSS

@media only screen and (max-width: 768px) {
  .header-menu-nav-item a {
    line-height: 4.2rem !important;
}  
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.