From d37464db4fb04c0294f281dea507e1f21f1d675b Mon Sep 17 00:00:00 2001 From: Sandell Charlotta Date: Mon, 1 Apr 2019 14:55:07 +0300 Subject: [PATCH 1/2] Update styles.css --- css/styles.css | 1 + 1 file changed, 1 insertion(+) diff --git a/css/styles.css b/css/styles.css index e69de29..30d74d2 100644 --- a/css/styles.css +++ b/css/styles.css @@ -0,0 +1 @@ +test \ No newline at end of file From 88407f545a68f2adc927bbf400f5b3333bc552c3 Mon Sep 17 00:00:00 2001 From: Sandell Charlotta Date: Mon, 1 Apr 2019 14:56:54 +0300 Subject: [PATCH 2/2] Update styles.css --- css/styles.css | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/css/styles.css b/css/styles.css index 30d74d2..0508159 100644 --- a/css/styles.css +++ b/css/styles.css @@ -1 +1,35 @@ -test \ No newline at end of file +h1{ + display:block; + font-size:2em; + font-weight:bold; + margin:4px auto; + text-align:center; + } + .rainbow{ + margin:4px auto; + } + .rainbow tr td{ + padding:4px; + } + .rainbow tr:nth-child(7n-6){ + background-color:rgb(255,0,0); + } + .rainbow tr:nth-child(7n-5){ + background-color:rgb(255,100,0); + } + .rainbow tr:nth-child(7n-4){ + background-color:rgb(255,255,0); + } + .rainbow tr:nth-child(7n-3){ + background-color:rgb(0,255,0); + } + .rainbow tr:nth-child(7n-2){ + background-color:rgb(0,0,255); + } + .rainbow tr:nth-child(7n-1){ + background-color:rgb(150,50,255); + } + .rainbow tr:nth-child(7n){ + /*This is what all the nth-child are based on, number of tr elements you are going down and offset by those numbers*/ + background-color:rgb(200,0,200); + } \ No newline at end of file