Learn Basic Javascript By Building a Role Playing Game - Step 11

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? :face_exhaling:

Hi @raquiaamin1 !
Can you share your code, instead of a screenshot?

1 Like

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.

1 Like

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;
}

1 Like

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.

2 Likes

Thank you so so very much!!

2 Likes

You’re welcome, keep up the good work.

2 Likes

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.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.