0
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?
2 ответов
0
You can use nth-child. Counting the position starts at 0. This should do the trick for the second:
p:nth-child(1)