nth - child selector | nth-child(2) | nth-child(odd) | nth-child(even) |

Опубликовано: 30 Сентябрь 2024
на канале: R.W.Acrown
122
like

nth-child(2) will select the second child element of the parent element.
nth-child(odd) will select all odd-numbered child elements of the parent element.
nth-child(even) will select all even-numbered child elements of the parent element.
nth-child(3n+1) will select every third child element of the parent element, starting with the first.
‪@R.W.Acrown‬