Jump to content

Line Height in Blocks - Custom CSS

Recommended Posts

Hi There, 

I am trying to edit the text of a single block on a page. Right now, I have the following CSS but the only thing that is changing is the background. Is there some other code to adjust the line height i need to use? None of the text seems to change whenever I apply a style properties directly to it. Help! 

#block-bd6090c6676705461de7
{ background: green;
  line-height: 2.0;
}

Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 months later...
5 hours ago, sophie.elizabeth said:

Hi I have tried to use custom line height for a specific block see below: 

#block-1a9d346fabceab370dcb * { 
  line-height: 15px;
}

This only changes the paragraph of text how do I change the line height of the title above, its H4 and image overlay. 

 

 

Can you share link to page in screenshot? We can check easier.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 8 months later...
On 7/23/2020 at 7:09 AM, tuanphan said:

Can you share link to page in screenshot? We can check easier.

Here's how I did it on my site and it worked fine.  The distance between the lines in the header changed without negatively impacting the paragraph text. 

#block-yui_3_17_2_1_1616784572971_8286
h4 {line-height: 5px;}

Link to comment
On 4/2/2021 at 10:32 PM, Ripple1 said:

Here's how I did it on my site and it worked fine.  The distance between the lines in the header changed without negatively impacting the paragraph text. 

#block-yui_3_17_2_1_1616784572971_8286
h4 {line-height: 5px;}

And you can use this tool to find block id. https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (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.