Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #css
ADD COMMENT
Topic
Name
7+6 =