Snippets tagged “last-child”
2 snippets use this tag.
- How to Select All Child Elements Except the Last OneCSS
Sometimes, you may need to select all the child elements except the last element. For that purpose, you can use the :not and :last-child pseudo- classes.
- How to Select the First and Last <td> in a Row with CSSCSS
In this snippet, we’ll demonstrate how you can select and style individual columns of your table using the :first-child and :last-child pseudo-classes.