Styling Tables

Styling Specific Columns

We can style specific columns of a table using pseudo classes like :first-child, :last-child and so on, along with the td and th selectors:

Try changing the above selector to td:last-child.

Apart from first and last child, you can select a specific column or even, odd columns using the :nth-child pseudo class: