How can you style every alternate row of a table to have a gray background? - Study24x7
Social learning Network
29 May 2024 11:17 AM study24x7 study24x7

How can you style every alternate row of a table to have a gray background?

A

tr:nth-child(even) { background-color: #eee; }

B

tr:even { background-color: #eee; }

C

table tr:nth-of-type(even) { background-color: #eee; }

D

tr:nth-row(even) { background-color: #eee; }

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles