Jump to content

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

Recommended Posts

Posted

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

Posted
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

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

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.