Jump to content

Styling line height in html code injection

Recommended Posts

Site URL: https://apple-drum-7nk8.squarespace.com/perspectives

I created a code injection to style two different font types and colors within a single text box, so to speak. In demo mode, it's working perfectly, but for some reason when I test the live version of the site, there's an extra line break appearing between the orange number and the title text (see screen grabs for reference).  Within my html code injection, how can I either reduce the vertical space of the line break, or minimize the line height between the number and the chapter title. The first screengrab (in demo mode) shows how I want the live version (see second screengrab) to function. 

Site pagehttps://apple-drum-7nk8.squarespace.com/perspectives  Password: p3akt3ch

My HTML code injection: <span style = "p2"> <p2 style="color:#f95624"> 01. <h3>Build Your Story</h3>

Screen Shot 2020-12-21 at 2.58.47 PM.png

Screen Shot 2020-12-21 at 2.59.14 PM.png

Screen Shot 2020-12-21 at 3.03.55 PM.png

Link to comment
  • Replies 3
  • Views 464
  • Created
  • Last Reply
  • 2 weeks later...

Hi. H3 has default padding. Add this to Design > Custom CSS

.code-block h3 {
    margin-top: 0;
}

I see on mobile, overlay menu items overlap together. You can check. If you need to fix, we will give the code

@Alexg77

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.