Question #57664

What does the following rule set do?
tbody tr:nth-child(2n) {
background-color: gray;
}

Expert's answer

The provided rule sets the background color to gray for each table row(tr tag) that is child node of its parent with event index (starting from one) on each level inside table body (tbody tag).

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS