« Web, HTML, Tech Forum

pseudo elements and classes question [closed]

sorry if it's a dumb question

i was just wondering if i could use the ::after pseudo element when the selector has a :hover pseudo class ?? idk how to word it sorry

is it possible to insert content after an element while it's being hovered over? 


Report Topic

1 Reply

Reply by vogel

posted
updated

Should be doable as when I tested putting an element in h1:hover:after it worked just fine.


Syntax: Pseudo-classes are allowed anywhere in selectors while pseudo-elements may only be appended after the last simple selector of the selector.


Permalink Report Reply

mason (profile wip) closed this Forum Topic