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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.