Is it possible to only display the :after
pseudo using :hover
? For example using alternative elements.
#parent{}
#child{display:none;}
#parent:hover >#child{display:block;}
As far as I've got with the same method:
#parent{}
#parent:after{content:'hi';display:none;}
#parent:hover #parent:after{display:block;}
Is it possible at all? Or am I fooling myself?
#parent:hover:after
? – Window#parent:hover :after
is that my problem? lol – Supplicatory#parent:hover :after
would style the#parent
's child element's:after
, rather than styling the actual#parent
's:after
. – Bartender