CSS :pseudo-classes helps you single out an HTML element by its particular state. :first-child and :last-child apply the style to a children element with a particular position in a group of sibling elements, e.g., the third 'p' in every div. The difference is ONLY the occurrence of the element in the container/parent element.

3m read timeFrom dev.to
Post cover image
Table of contents
ColumnRow

Sort: