+ 1

Working with Pseudo-Classes

This might be a stupid question but is it possible to color the second child in a pseudo class?

21st Oct 2016, 8:43 PM
Schonn Underwood
Schonn Underwood - avatar
2 Answers
+ 4
For this there is a pseudo-class nth-child(). In parentheses just written the number of the element you want to change
22nd Oct 2016, 8:01 AM
Nadezhda
0
In the case of nth-child(), be sure to only put a number in the parentheses. Otherwise, it won't work. I have code up if you or anyone else wants to see it. https://code.sololearn.com/W5qxYSU4eG3f/#html
14th Dec 2016, 11:39 AM
Coding Mama
Coding Mama - avatar