Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Styling line height in html code injection


Alexg77

Question

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 post
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

CSS? p2 h3 { margin-top: 0px; }  

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

Posted Images

3 answers to this question

Recommended Posts

  • 0

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

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...