From bc0ee7a295f82658ebfe5005f0b04f94de30d705 Mon Sep 17 00:00:00 2001 From: savvasha Date: Thu, 30 Nov 2017 07:00:24 +0200 Subject: [PATCH] Add Zebra striping to repsonsive tables --- includes/sp-template-functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/sp-template-functions.php b/includes/sp-template-functions.php index 85da7102..ac8c59cb 100644 --- a/includes/sp-template-functions.php +++ b/includes/sp-template-functions.php @@ -565,6 +565,10 @@ if ( ! function_exists( 'responsive_tables_css' ) ) { padding-right: 10px; white-space: nowrap; } + /* Zebra striping */ + tr:nth-of-type(odd) { + background: #eee !important; + } /* Label the data