Are there any special rules for pseudo-classes or pseudo-elements? #296
Unanswered
DanKaplanSES
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
.button
block, how do I "modify" it on hover? I feel like there's only one thing you can do: create a new CSS selector for it, e.g.,.button:hover
or.button__elem--mod:hover
.::before
on a block/element? This isn't as straightforward to me. Like the previous point, you could do.button::before
or.button__elem--mod::before
, but maybe there's an advantage to avoiding pseudo elements and creating a semantic element in the HTML instead? e.g.,.button__before
or.button__before--mod
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions