Jump to content

What CSS to use to reduce padding between lines of text?

Recommended Posts

Site URL: https://www.jessbrand.com

Hello,

Thanks in advance to whomever replies! I have been searching for css code to reduce the padding between two lines of text.  

I think I almost did it once ...but have no idea what I was actually doing.

 

The two lines of text are "Learning Design is"   and underneath that is " art + science + detective work + strategy + empathy".

(I purposely had the top line font larger than the bottom line)

Jess😀

 

Screen Shot 2022-02-20 at 7.28.21 PM.png

Screen Shot 2022-02-20 at 7.28.38 PM.png

Link to comment
On 2/21/2022 at 7:36 AM, jBYo said:

Site URL: https://www.jessbrand.com

Hello,

Thanks in advance to whomever replies! I have been searching for css code to reduce the padding between two lines of text.  

I think I almost did it once ...but have no idea what I was actually doing.

 

The two lines of text are "Learning Design is"   and underneath that is " art + science + detective work + strategy + empathy".

(I purposely had the top line font larger than the bottom line)

Jess😀

 

Screen Shot 2022-02-20 at 7.28.21 PM.png

Screen Shot 2022-02-20 at 7.28.38 PM.png

Try adding to Home > Design > Custom Css

#block-6e74c6d7a2d5ec68a339  h4 {
  margin-top: 0;
}
#block-6e74c6d7a2d5ec68a339  h2 {
  margin-bottom: 0;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

 

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

My testing

image.thumb.png.6b797ee54a90c914c8254bb198171051.png

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.