Kategorien

CSS stripes

Zebra striping a table or a list

For a table:

.stripetabelle tr:nth-child(even) {background-color: #dadada;}

For a ul list,
.stripelist li:nth-child(even){ background:#dadada;}