table - Alternate rows in one column only - CSS -


How do I print alternate lines in only one column in my table? What is the code for this?

As afranz409 has been said, the ideal solution would be to create a square. However, this CSS can be done with specific solutions, with limited browser capabilities (none of IE browsers & 9; 9):

  table tr: nth-child (2n ) & Gt; Td: nth-child (1) {background-color: #by; }   

In other words, for each of the optional lines, within the first column column, fill the background color #eee . Looked at

For more cross-browser compatible solutions, I would recommend using this selector within jQuery:

$ ('table tr: nth-child (2n) )> Td: Nth-child (1) '). CSS ("background-color", "#b");

Comments