I'm trying to get the same pseudo element on a div
and an img
tag.
While the div
works just fine the element doesn't show up on the img
tag. I use this CSS (simplified):
div:hover:before, img:hover:before{
content: 'pseudo';
position: absolute;
right: 0;
}
Please check out the jsfiddle for the example