Over a million developers have joined DZone.

Alternating Table Color Rows in CSS

·

These 2 techniques can be used for alternating row-colors in a table.



 
Row1Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Row2Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Row3Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Row4Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Row5Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Row1Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Row2Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Row3Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Row4Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Row5Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}