beccatapert Posted January 17 Share Posted January 17 I am having a hard time writing code to create a hover state on the following link. I would like the text to fade to black when hovered. This is on the homepage near the bottom. Any help is appreciated. Thank you! Link to comment
yubrajs Posted January 17 Share Posted January 17 Add the below code in your custom css, if you are using h2 as the link tag otherwise update the tag as per text link. .sqs-html-content h2 a{ transition: all 0.5s ease; } .sqs-html-content h2 a:hover{ color:#000; } Link to comment
paramjeet.kour08 Posted January 17 Share Posted January 17 share site url mpls ? Hi ! I am Paramjeet kaur Top rated SquareSpace Web Designer and Web Developer with SEO For Web Sites. Working Now As freelancer With lowest Rate. Rate $20 per hour. Till date, I have created over 300 + websites in Squarespace. Contact Me Email Link to comment
beccatapert Posted January 17 Author Share Posted January 17 11 hours ago, yubrajs said: Add the below code in your custom css, if you are using h2 as the link tag otherwise update the tag as per text link. .sqs-html-content h2 a{ transition: all 0.5s ease; } .sqs-html-content h2 a:hover{ color:#000; } @yubrajs Unfortunately this did not work. Link to comment
yubrajs Posted January 18 Share Posted January 18 Try this: .sqs-html-content h2 a em:hover { color:#000 !important; } Link to comment
beccatapert Posted January 18 Author Share Posted January 18 1 hour ago, yubrajs said: Try this: .sqs-html-content h2 a em:hover { color:#000 !important; } @yubrajs That worked. Except how do I get the underline to also change colors? Link to comment
Solution yubrajs Posted January 18 Solution Share Posted January 18 Here is the code for underline: .sqs-html-content h2 a .sqsrte-text-color--black:hover { text-decoration-color: #000 !important; } Link to comment
beccatapert Posted January 18 Author Share Posted January 18 Perfect, thank you! @yubrajs 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