How can I write a ‘:hover’ condition for ‘a:before’ and ‘a:after’? May 9, 2022 by IT Nursery How can I write :hover and :visited condition for a:before? I’m trying a:before:hover, but it’s not working. 7 Answers 7