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 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment