Jump to content

Changing line height on mobile only

Recommended Posts

Site URL: https://joeylim.xyz/art-dubai

Hello! 

I'm trying to change the line height for every text on my website when viewed on a mobile device. Currently, I've set the line height to 0.7em on the site style, but when viewing on a mobile device the lines overlap. 

 

I've found the code: 

@media screen and (max-width:767px) {
h4 {
    line-height: 1em;
}
}

 

but it's not working for me. Any ideas why? 

Link to comment
  • Replies 1
  • Views 436
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.