Check out bidbear.io Amazon Advertising for Humans. Now publicly available ๐Ÿš€

CSS: Styling Every Other Element

Contents

There are a lot of times where you will want to automatically style every other element slightly differently, for example, in a table, to make it more legible. Hereโ€™s how.

tr {
  background:#eee;
}

tr:nth-child(odd) {
  background:#ddd;
}

The :nth-child(odd) property will target every other item of the element you have selected. Here is a working sample.

Amazon Ad Analytics For Humans

Advertising reports automatically saved and displayed beautifully for powerful insights.

bidbear.io
portfolios page sunburst chart