Check out this example here: https://codepen.io/anon/pen/zzrdmo
I'm having trouble with the click effect using the :active
pseudoclass on an icon inside a div in Firefox. When I click and then unclick the div, it stays clicked...
If I remove the relative position in the :active
pseudoclass, it works fine but without the desired effect... This issue seems to only happen in Firefox as Chrome, Safari, etc work correctly. Does anyone know why?
Thank you.
UPDATE: The solution to this problem can be found in the first answer. By adding 'position: relative' (without specifying top) to the hover state rule, the issue is fixed." - @Johannes Thanks!