Its telling me, “You should use the footer, footer a selector”. My code is:
footer, footer a {
color: white;
}
No idea what I am doing wrong here, if anyone can help me, please do asap, thanks.
Its telling me, “You should use the footer, footer a selector”. My code is:
footer, footer a {
color: white;
}
No idea what I am doing wrong here, if anyone can help me, please do asap, thanks.
Hi there, welcome to the community.
Your code is correct.
Try to reset the step and do it again to make sure you didn’t mess up other code.
If that doesn’t help, try to clear the browser cache and try again, or try using another browser.
For the next time, you should create a help post by pressing the Help button.
The button will appear after you tried to submit your solution 3 times.
I’ll create a help post with your code, the link to the step for better and faster assistant.
Also, you should post your code by put your code between 2 line of ``` (3 back ticks) (the back tick key is usually right under the Esc key on your keyboard), like this:
```
# your code here
```
or you can use the Preformatted Text button (the one with </>
icon) (or press Ctrl + E) :
Hello and welcome to the forum!
Checking to make sure the } closing curly bracket is not missing from the code above.
The previous post by Toan, works to resolve this, and many other problems, when the code is correct but not passing. Using Dark Mode can also create problems with the code being recognized.
Wishing you good progress on your coding journey.
I’ve tried everything, it keeps on denying me.
I had a look at my HTML, its like this:
<footer>
<address>
<a href="https://freecodecamp.org">freeCodeCamp</a><br />
San Francisco<br />
California<br />
USA
</address>
</footer>
I noticed also that when i write “footer, footer a” on the CSS, the footer writing and link does not turn white. It stays navy and purple. But when i write:
address, a {
color: #dfdfe2;
}
The footer writing and the link turn white but the task does not let me pass the step. I know there are various ways of doing projects but the task here is to do it exactly the way its telling us to do, which is what I am not happy about at this stage.
I understand the frustration. It’s that way because the test is done automatically.
When we apply the CSS rules for footer, footer a
, if we add more text to the footer, those text will also have white color too, not just the address
.
It’s strange that you have tried reset, clearing the cache, using different browsers and the issue still persists.
I forget to mention turning off all browser extensions. Have you tried it?
Can I see your full CSS code?
You can copy your full code by putting the cursor on the CSS file and press Ctrl + A to select all and copy.