Is it possible to display:block; the :after pseudo-element when I hover over the parent element itself?
display:block;
:after
#myDiv{ position:relativ
Change it to #myDiv:hover::after
#myDiv:hover::after
You can use either :after or ::after but in the selectors module (3) it states that the latter is now intended to be used to distinguish them from pseudo-classes
::after