Jump to content

Different nav menu item spacing on web vs mobile

Recommended Posts

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

Link to comment
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;
}  
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.