Although…well I feel like I correctly referenced html id elements in css, it keeps giving me " You should have a #controls, #stats
selector." error. I’ve retyped the coding, researched how to reference id elements in css, and I absolutely have no idea what’s wrong. Can someone please help?
Hi @raquiaamin1 !
Can you share your code, instead of a screenshot?
Yes!
#controls {
border-width: 1px;
border-style: solid;
border-color: #0a0a23;
color: #0a0a23;
padding: 5px;
}
#stats {
border-width: 1px;
border-style: solid;
border-color: #0a0a23;
color: #0a0a23;
padding: 5px;
}
You should take into consideration these instructions.
You should have a #controls, #stats selector.
Only have one selector, separate the id names using a comma then add the CSS properties.
Okay. Soooo…I did that; however, now it’s giving me " Your #controls, #stats selector should have a border of 1px solid #0a0a23 " error.
#controls,#stats {
border-width: 1px;
border-style: solid;
border-color: #0a0a23;
color: #0a0a23;
padding: 5px;
}
All these border values should be assigned to the border property shorthand, I see a border-width, border-style and border-color
all these are not required by the lesson. Use the border shorthand.
Thank you so so very much!!
You’re welcome, keep up the good work.
Hey there. I used the solution that was given to use the shorthand for border. I was still given the error code. I think my computer sucks at this point. Because my code should work.
#controls {
border: 1px solid #0a0a23;
color: #0a0a23;
padding: 5px;
}
#stats {
border: 1px solid #0a0a23;
color: #0a0a23;
padding: 5px;
}
Please anyone help…I’m annoyed at this point.
Thanks in advance!
Thank you that worked! I’ll be sure to use that next time.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.