What's the difference between `*::before` and `::before` and why would I use it? Stumbled across it in a blog post.
Edit: Here https://www.kallmanation.com/styling-a-radio-button-with-only-css
@OddDev * means every element. So you’d be setting styles to be applied to the before pseudo-element of every element. Likely not what you want to do :)
@OddDev Although, if you scope it to another element, then it’ll mean every element within that scope, which could be useful.
e.g., nav *::before {} would apply those styles before every element in your nav.
@OddDev (Whereas nav::before {} would only apply the styles before the nav element itself.)
@aral Ah okay, so it's no special syntax really. Thank you so much!
Wondering why they did that here tho: https://www.kallmanation.com/styling-a-radio-button-with-only-css
@OddDev Yeah, at a quick glance, not sure. Take it out and see what happens :)
@aral It's the same. Maybe it's just an oopsie in the post.
@OddDev Thought as much :)