Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
In the Pseudo-Class Is There No 2nd Child or 3rd Child?
Im curious. #parent p:last-child { color: green; text-decoration: underline; } does second child come in?
1 Resposta
0
You can use nth-child. Counting the position starts at 0. This should do the trick for the second:
p:nth-child(1)