CSS hover & active doesn’t work | Sololearn: Learn to code for FREE!


CSS hover & active doesn’t work

I don’t understand why the “:hover” and “:active” doesn’t work. Can someone help me? Thank you very much in advance. https://code.sololearn.com/W3HUj5GRoPqr/?ref=app

4/19/2021 3:33:42 AM


5 Answers

New Answer


Neo :active doesn't work at here https://code.sololearn.com/WQIGkq1cLlIP/?ref=app


As I understand, `:active` is for hyperlinks (<a></a>). `:hover` should work fine, but you currently don't have it implemented in your CSS.


Ipang thank you very much.


Matiyas thank you for the “Solved” example. But still, the hover doesnt work. (Im on an iPhone. Maybe its because of that that doesnt work??)


Use the 'a' pseudo classes in this format, a:link(first) a:visited(second) a:hover(third) a:active(fourth) And if as a failsafe if that doesn't work, use the ! Important tag on the hover tag