Jump to content

How to decrease the gap between underlines and text on mobile menu

Recommended Posts

 

Hello experts,

How to increase the the gap between underline and text, while reducing the line hight?
My mobile menu on phone and tablet looks ugly.
I would like the line hight smaller and the underlines further away from the text.
I guess it’s not possible to have a different color instead of an underline…?
Also, a hover effect would be fantastic but I think I read it's not possible on mobile…?

Here are the codes I am using to get a smaller font size

/* Customizing mobile menu */
.header-menu-nav-item a {
  line-height: 1.6rem;
}
@media only screen and (max-width: 640px) {

/* font size for mobile menu */
  .header-menu-nav-item a {
      font-size: 1.4rem;
  }
}

/* Customizing tablet menu */
.header-menu-nav-item a {
  line-height: 1.2rem;
}
@media only screen and (max-width: 1024px) {

/* font size for tablet menu */
  .header-menu-nav-item a {
      font-size: 1.4rem;
  }
}

Thank you very much in advance.

best,

D*

Thank you. very much 

Bildschirm­foto 2023-02-07 um 19.04.44.png

Link to comment
  • Replies 0
  • Views 146
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Posted Images

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.