Permalink
Browse files

Merge pull request #1 from Kevnz/master

By applying the yui3-table-striped class to a table element, it applies the striping to the odd rows
  • Loading branch information...
2 parents bd973a5 + 42b0dd2 commit 575af9117b78f266c90ea456773dc775be35b812 @tilomitra committed Mar 30, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 css/tables.css
View
4 css/tables.css
@@ -55,6 +55,10 @@ striping:
background-color: #f2f2f2;
}
+/* nth-child selector for modern browsers */
+.yui3-table-striped tr:nth-child(2n-1) td {
+ background-color: #f2f2f2;
+}
/* BORDERED TABLES */
.yui3-table-bordered td {

0 comments on commit 575af91

Please sign in to comment.