From 3e85efdf8e25af5736b519139ccf2249f28084c2 Mon Sep 17 00:00:00 2001 From: Milos Lazarevic Date: Wed, 1 Nov 2017 16:09:40 +0100 Subject: [PATCH] Selectors Homework --- css/style.css | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/css/style.css b/css/style.css index 2e96562..e822cbb 100644 --- a/css/style.css +++ b/css/style.css @@ -6,3 +6,32 @@ body { // Don't delete the body styling, as some of the selectors might not work well +li { + +} + +li:nth-child(even), li:nth-child(odd) { + color: green; +} + +li:nth-child(3) { + background-color: lightblue; +} + +li:first-of-type { + border-top: 1px solid green; +} + +li:last-of-type { + border-bottom: dotted 5px blue; +} + +li:nth-child(3) a, li:nth-child(5) a { + color: red; +} + +li:nth-child(5) a:hover { + color: gray; +} + +