Assessment wanted for Cascade skill test 2

i’m sure that i got this wrong
i just changed the id selector from #outer to #inner https://codepen.io/zortron756/full/abdWbbB
https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_tasks

Hi,
You could use:
background-color: inherit;
In this code block:
#inner div ul .nav a { background-color: blue; padding: 5px; display: inline-block; margin-bottom: 10px; }

@church_craig @jrohatiner this is a slightly tricky one — if you look at the wording, it tells you to create a NEW rule that changes the background color back to white, but without using a color value.

So this new rule basically requires a selector that has higher specificity than the existing one that sets the background color in the first place. And you need to use a value for background-color that grabs the color from somewhere else, or unsets the value. Something like this would work:

#outer #inner a {
  background-color: inherit;
} 

unset and initial would also work as values.

1 Like