From 00ea1f5521a313ca06b9e0fba029c9689b0fba59 Mon Sep 17 00:00:00 2001 From: Tarun Telang <48248607+tatelang@users.noreply.github.com> Date: Mon, 19 Aug 2019 20:25:49 +0530 Subject: [PATCH] Updated answers.css with problem details for easy reference (#129) * Update answers.css * Update answers.css adding comments in the answers.css for easy reference. --- step1-02/exercise/answers.css | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/step1-02/exercise/answers.css b/step1-02/exercise/answers.css index 7648302..dec67be 100644 --- a/step1-02/exercise/answers.css +++ b/step1-02/exercise/answers.css @@ -1,27 +1,34 @@ +/* 1. Text Color: Red */ h2 { color: red; } +/* 2. Color Green (hint: Sibling Selector) */ h2 + div { color: green; } +/* 3. Border Green*/ .myList li { border: 1px solid green; } +/* 4. Background Green */ .myClass { background: green; } -#myId { - background: yellow; -} - +/* 5. Background Green & Color White (Hint Qualified Selector) */ .myClass.otherClass { color: white; } +/* 6. Background Yellow */ +#myId { + background: yellow; +} + +/* Bonus: Border Pink*/ section > div:last-child { border: 1px solid pink; }