You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task: Write a declaration in a new rule that will reset the background color back to white, without using an actual color value?
10
+
11
+
One possible solution is as follows:
12
+
13
+
```
14
+
#outer #inner a {
15
+
background-color: initial;
16
+
}
17
+
```
18
+
19
+
There are two things you need to do in this task. First, you need to write a selector for the `a` element which is more specific than the selector used to turn the background blue. I have achieved this by using the `id` selector which has very high specificity.
20
+
21
+
Then you need to remember that there are special keyword values for all properties. In this case I am using `inherit` to set the background back to be the same as its parent element.
0 commit comments