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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -