janerschwartz Posted November 15, 2021 Share Posted November 15, 2021 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. 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!!! Link to comment
Beyondspace Posted November 15, 2021 Share Posted November 15, 2021 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. 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!!! 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 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment