Jump to content

How to I change the colour of underline site-wide?

Recommended Posts

Site URL: https://beagle-tangerine-ex9m.squarespace.com/

Hi All,

I wondered whether anyone could tell me how I can change the colour of the underline style site wide.

I currently have H2 set to a custom underline but i'd like to make this style specific to when I use underline in markdown blocks <u>text</u> because when I use H2 it adjusts all the text on one line to being underlined and I would like to apply this underline style to specific words in text.

This is the current CSS:

h2 { 
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: #3effb1;
  text-decoration-thickness: 20px;
}

I've tried this code but nothing happened: 

.underline {
text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: #3effb1;
  text-decoration-thickness: 20px;
}

 

I'm new to coding so I have very little idea of what I'm doing haha. Any suggestions would be greatly appreciated!

Below attached image shows what underlining currently does (has same colour as font) and above is an example of H2 with the desired colour I hope to achieve.

Thanks,

Sarah

 

Screenshot 2020-11-13 at 08.48.52.png

Link to comment
  • Replies 5
  • Views 2.8k
  • Created
  • Last Reply

HI Sarah,

Your site is private, please provide a password so we can check

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
Just now, sarahgilchrist said:

I'm afraid it's not Live yet, is this an issue?

You can set a temporary site wide pasword in Permission section

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 4 weeks later...
4 hours ago, sarahgilchrist said:

the password is: digitalnative

You already change the underline color, what wrong?

image.thumb.png.cf6f89c4c13dc6a1b486cbbe11a956a6.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.