From 48acfe6c49e3be4e6dcd17a1c94ba5fbf2596316 Mon Sep 17 00:00:00 2001 From: Lucas Patenaude Date: Sat, 13 Apr 2024 17:33:01 -0600 Subject: [PATCH] Add styling for alternating row colors in table --- .../src/resources/css/league-page/league-page.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ProjectSourceCode/src/resources/css/league-page/league-page.css b/ProjectSourceCode/src/resources/css/league-page/league-page.css index bb54f4b..80ce4a8 100644 --- a/ProjectSourceCode/src/resources/css/league-page/league-page.css +++ b/ProjectSourceCode/src/resources/css/league-page/league-page.css @@ -45,12 +45,13 @@ margin: 0; } -#standings-table tbody tr.even { - background-color: #f2f2f2; +/* Define styles for odd and even rows */ +#standings-table tbody tr:nth-child(odd) { + background-color: #f2f2f2; /* Light gray for odd rows */ } -#standings-table tbody tr.odd { - background-color: #a2a1a1; +#standings-table tbody tr:nth-child(even) { + background-color: #ffffff; /* White for even rows */ }