BradleyK Posted October 30 Share Posted October 30 How can I decrease the line height on just the P2 or Paragraph 2 text in 7.1? Thank you. Link to comment
Web_Solutions Posted October 30 Share Posted October 30 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; } Ainul 1 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
BradleyK Posted October 30 Author Share Posted October 30 Thank you, but that code controls the line height for all Paragraph text, P1, P2, and P3. I would like to control only P1, and leave the line height the way it is for the remaining P2 and P3 paragraphs. Link to comment
Solution melody495 Posted October 30 Solution Share Posted October 30 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 Posted October 30 Author Share Posted October 30 This worked perfectly! Thank you very much for your assistance! Brad Link to comment
melody495 Posted October 30 Share Posted October 30 @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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment