+ 1
Could css pseudo elements ::before and ::after be used without selecting any html tags?
E.g *, *:: before, *::after. Like that just don't understand.
3 Answers
+ 2
you cannot use before and after pseudo element without selecting at least one element (before and after what if not?)
however, with * you select all elements... so your before/after rules will apply to all element, unless you overide that later with higher precedence ^^
0
Alright thanks very much,đ
0
I now understand