beccatapert Posted January 17 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!
yubrajs Posted January 17 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; }
paramjeet.kour08 Posted January 17 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
beccatapert Posted January 17 Author 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.
yubrajs Posted January 18 Posted January 18 Try this: .sqs-html-content h2 a em:hover { color:#000 !important; }
beccatapert Posted January 18 Author 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?
Solution yubrajs Posted January 18 Solution Posted January 18 Here is the code for underline: .sqs-html-content h2 a .sqsrte-text-color--black:hover { text-decoration-color: #000 !important; }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment