Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 00ea1f5

Browse files
tatelangmicahgodbolt
authored andcommitted
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.
1 parent 7ad04d2 commit 00ea1f5

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

step1-02/exercise/answers.css

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
1+
/* 1. Text Color: Red */
12
h2 {
23
color: red;
34
}
45

6+
/* 2. Color Green (hint: Sibling Selector) */
57
h2 + div {
68
color: green;
79
}
810

11+
/* 3. Border Green*/
912
.myList li {
1013
border: 1px solid green;
1114
}
1215

16+
/* 4. Background Green */
1317
.myClass {
1418
background: green;
1519
}
1620

17-
#myId {
18-
background: yellow;
19-
}
20-
21+
/* 5. Background Green & Color White (Hint Qualified Selector) */
2122
.myClass.otherClass {
2223
color: white;
2324
}
2425

26+
/* 6. Background Yellow */
27+
#myId {
28+
background: yellow;
29+
}
30+
31+
/* Bonus: Border Pink*/
2532
section > div:last-child {
2633
border: 1px solid pink;
2734
}

0 commit comments

Comments
 (0)