You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Background Color on odd records on a Table

posted on March 5

I'm on lastest ver of LF12 mordern design. Can someone tell what I'm missing on this CSS code? I want all odd record to show gray.

.week div.table-set:nth-of-type(odd) 
  background-color: #cfcfcf !important;
}

Thanks in Advance

0 0
replied on March 5

This is what I use:

*Colors every other row of a table*/
table tr:nth-child(Odd) {background-color: #ffffff;}
table tr:nth-child(Even) {background-color: #f0f0ef;}

 

3 0
replied on March 5

Sweet, that's what i wanted!!!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.