0

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

19th Apr 2021, 3:33 AM
Neo
5 ответов
19th Apr 2021, 4:21 AM
Matias
Matias - avatar
+ 2
As I understand, `:active` is for hyperlinks (<a></a>). `:hover` should work fine, but you currently don't have it implemented in your CSS.
19th Apr 2021, 4:14 AM
Ipang
+ 1
Ipang thank you very much.
19th Apr 2021, 7:12 AM
Neo
0
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??)
19th Apr 2021, 7:13 AM
Neo
0
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
28th Oct 2021, 10:40 PM
Patrick Kabuga
Patrick Kabuga - avatar