Jump to content

How to decrease the line height on P2 or Paragraph 2 text?

Go to solution Solved by melody495,

Recommended Posts

13 minutes ago, BradleyK said:

How can I decrease the line height on just the P2 or Paragraph 2 text in 7.1?

Thank you.

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.  You can change the value 1.8 to as your need.

p:not(.sqsrte-large), p:not(.sqsrte-small) {
  line-height: 1.2 !important;
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
  • Solution

Hi @BradleyK

  • p1 = .sqsrte-large
  • p2 = p
  • p3 = .sqsrte-small

However, importantly, p can also be just any paragraphs, hence the "not" in the above code. The above code is a safe way to target p2 only, which answers your original question. Replace the above code with which paragraph you want to target to suit your needs.

e.g. to change p1 only

.sqsrte-large {
  line-height: 1.2 !important; // change value to height you want
}

 

 

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

🙋‍♀️Techy SquareSpace Developer for all your customisation needs #CSS #html #javascript

✉️ Email me

💻Soft launch

https://www.melodylee.tech/
A software developer in an artist body that knows how marketing works.
UK based, work globally

#neverstoplearning
 
I like coffee 😊

Link to comment

@BradleyK  all Web_Solutions, but you are welcome! glad it worked for you

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

🙋‍♀️Techy SquareSpace Developer for all your customisation needs #CSS #html #javascript

✉️ Email me

💻Soft launch

https://www.melodylee.tech/
A software developer in an artist body that knows how marketing works.
UK based, work globally

#neverstoplearning
 
I like coffee 😊

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.