Stuck on Curious Ornithologist question 2

Hi all,

Thank you in advance for any input. I am very new to this and I have gotten to the exercise “Curious Ornithologist”
( ) and I cannot work out what I am doing wrong for question 2. At that stage in the project, the code I have added looks like this:

.dark {
–bg: var(–dark-mode-background);

I found someone’s completed code for the project on github and they seem to have used the exact same code as me, but for some reason mine has no impact at all. It’s very possible I am missing something, but I have been staring at it for some time now and I cannot work out where I have gone wrong?

Again, thank you for any support - I have gotten some momentum going and I don’t want to lose it!

That is the same code I have, and it worked. Just double checking… you have two hyphens before bg and dark?

1 Like

Hi, thanks you for your reply - yes, they do (not sure why they removed some when I pasted it above)

–bg: var(–dark-mode-background);

I still can’t work out what’s going wrong - even the completed one I found online doesn’t work (I’m using chrome btw, forgot to mention that above)

Did you ever find an answer to this? I am having the same problem today. Nothing happens when I switch to dark mode. I’m positive I typed everything correctly.

Hi jeremya,

I did not! I have skipped it and gone on to something else. Very frustrating. If I do ever come across a resolution I shall be sure to let you know; would you be able to do the same for me please?

@dannyboy6907 & @sarafisher5162350386

Which browsers are you working in?
I’m on Opera (Chromium) and it doesn’t work for me either.

@codecademy This task is not working for several of us … any answers?

You’ll need to share your full code to troubleshoot what’s going on here. Here’s a link for how to format it in the forums below. But share it and I can take a look.