Answers for "nth-child(3)"

CSS
19

nth-child() css

/* Selects the second <li> element in a list */
li:nth-child(2) { 
  color: lime;
}

/* Selects every fourth element
   among any group of siblings */
:nth-child(4n) {
  color: lime;
}
Posted by: Guest on April-12-2020
2

nth-child

tag/id/class:nth-child(number/even/odd/expression) {
  css declarations;
}
Posted by: Guest on July-21-2021
0

nth child

/* Selects the second <li> element in a list */
li:nth-child(2) {
  color: lime;
}

/* Selects every fourth element
   among any group of siblings */
:nth-child(4n) {
  color: lime;
}
Posted by: Guest on January-20-2021

Browse Popular Code Answers by Language