Why tr:nth-child(odd) and tr :nth-child(odd) shows different result? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

Why tr:nth-child(odd) and tr :nth-child(odd) shows different result?

tr:nth-child(odd){background-color: blue;} tr :nth-child(odd){background-color: blue;} Are not same. But why?

23rd Nov 2021, 12:50 AM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar
1 Réponse
+ 1
tr :nth-child(odd) is equal to tr *:nth-child(odd)
24th Nov 2021, 10:45 AM
Alexey Kopyshev
Alexey Kopyshev - avatar