Permalink
Browse files

Added striped table and nth child selector

The nth child selector allows for the table to be marked and not every row.
Excellent browser coverage http://caniuse.com/#feat=css-sel3
  • Loading branch information...
1 parent bd973a5 commit 42b0dd2cb6cad91a14f23357a3450efd0d5745f0 @Kevnz committed Mar 30, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 css/tables.css
View
@@ -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 42b0dd2

Please sign in to comment.