Jump to content

highlight text that does not go all the way down

Recommended Posts

Hi! Does anyone know how to add a highlight behind text that doesn't go all the way down to the bottom of the text? I'd like the highlight to just go slightly below the letters that don't drop down, for example, just below an "e" but not all the way down to the bottom of  "p." Here is the code I used which works to highlight the bottom half-ish of the letters.

h1 strong {background: linear-gradient(to bottom, #F1F4F9 65%, #FC7d5ex 30%); font-

weight:normal}

Here's a picture in case I typed in anything wrong. 

image.png.a42a0ecd6962520fd455c7df42c8ce09.png

I've also seen it done with "180deg" instead of "to bottom"

What should I put there to make the highlight not go down so far? Thank you!!!

 

 

 

image.png

image.png

image.png

Link to comment
  • Replies 1
  • Views 275
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

27 minutes ago, janerschwartz said:

Hi! Does anyone know how to add a highlight behind text that doesn't go all the way down to the bottom of the text? I'd like the highlight to just go slightly below the letters that don't drop down, for example, just below an "e" but not all the way down to the bottom of  "p." Here is the code I used which works to highlight the bottom half-ish of the letters.

h1 strong {background: linear-gradient(to bottom, #F1F4F9 65%, #FC7d5ex 30%); font-

weight:normal}

Here's a picture in case I typed in anything wrong. 

image.png.a42a0ecd6962520fd455c7df42c8ce09.png

I've also seen it done with "180deg" instead of "to bottom"

What should I put there to make the highlight not go down so far? Thank you!!!

 

 

 

image.png

image.png

image.png

Can you share your site with the protected password and some screenshot of the text needed to apply the highlight? We can check your issue together

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

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.