Jump to content

Squarespace 7.1 - line height headline

Recommended Posts

  • Replies 7
  • Views 1.2k
  • Created
  • Last Reply
On 1/22/2021 at 6:21 PM, RyanDejaegher said:

Hey @ornever this should do the trick, it looks like you've already got some CSS to try fix the issue

 


[data-section-id="5ec7c08076c7027645c95b6c"] h1 {
    line-height: 120% !important;
}

 

Hello @RyanDejaegher.

Thank you so much for your help.

Unfortunately it does not work! I inserted the custom code in Design/CustomCSS - but nothing happens. I think the problem is not the line-height but the background of this section. The text has a background colour that is now set on transparent. I would like to delete that background completely, but don't know how!

Thanks again and kind regards

Sibylle from or never

Link to comment
On 1/27/2021 at 3:30 AM, ornever said:

Hello @RyanDejaegher.

Thank you so much for your help.

Unfortunately it does not work! I inserted the custom code in Design/CustomCSS - but nothing happens. I think the problem is not the line-height but the background of this section. The text has a background colour that is now set on transparent. I would like to delete that background completely, but don't know how!

Thanks again and kind regards

Sibylle from or never

Have you solved this yet?

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
19 hours ago, ornever said:

Unfortunately not! Do you have any idea how to solve it?

Thank you so much.

Best, Sibylle

Add to Design > Custom CSS

/* need help line height */
div#block-15d9ca305a2b7786c571 h1 {
    line-height: 10px !important;
}

 

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
On 2/6/2021 at 9:17 AM, tuanphan said:

Add to Design > Custom CSS


/* need help line height */
div#block-15d9ca305a2b7786c571 h1 {
    line-height: 10px !important;
}

 

Hi @tuanphan

Thank you so much!!! It works like a charm. BUT: it's not working for mobile!

Could you help me as well with a code for the responsive design? 

Many thanks and kind regards

Sibylle

Link to comment
5 hours ago, ornever said:

Hi @tuanphan

Thank you so much!!! It works like a charm. BUT: it's not working for mobile!

Could you help me as well with a code for the responsive design? 

Many thanks and kind regards

Sibylle

Try this

/* need help line height */
div#block-15d9ca305a2b7786c571 h1 {
    line-height: 10px !important;
}
@media screen and (max-width:767px) {
/* need help line height mobile */
div#block-15d9ca305a2b7786c571 h1 {
    line-height: 25px !important;
}
}

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.