H1 turning blue outside of class scope
Am I going insane? Why is this happening?
I only want the p and h1 in the "one" class to turn blue.
Codepen: https://codepen.io/SirFloki/pen/VwGjYJp
3 Replies
you need this:
The comma completely resets the selector
Alternatively:
I see...so the second selector after the comma is selecting all paragraphs and isn't scoped to the "one" class.
It's very odd this is the first time I've run into this issue. But now I know.
Thanks!
That's correct. And you're welcome glad to help!