How is the .container rule only applied to the checkbox when it’s checked?
It is not, i think, i mean the box-shadow and all the styling applyes to the .container
But the tests are asking for those to be applied to the checkbox only when the checkbox radio button is checked
Can you send me the number so i can see it?
Here? The tests you keep posting
Edit - I said ‘checkbox’ and not ‘radio button’ but it’s the same problem
I was talking about the .container, t is the main element, the radio-group is correct `.radio-group {
margin-bottom: 20px;
border: 1px solid white;
border-radius: 5px;
padding: 20px;
}
.radio-group input[type=“radio”]:checked {
border: 1px solid gray;
}`
Like I said above a couple of times… How does making a rule for . container ensure that the styling is only applied to your radio button when it’s checked? The tests are telling you exactly what selector you must use for the background color and box shadow.
am i not doing that? `.radio-group input[type=“radio”]:checked === .radio-group input[type=“radio”]:checked
Where Inside of the rule with that selector are you setting the background color and box shadow?
Adding a border isn’t the same thing as setting a background color or box shadow.
the shadow is not asked in this selector
The test literally says that it is though?
That’s literally what this pair of errors you posted says.
it asks to add a background color, shall i delete the border, I think it is asked in some place
If you are trying to fix the two tests that you say are failing… You should fix your rule to include the styling the tests are telling you to add
I need help n how to target this 18. You should use the :checked pseudo-class on radio buttons to change the text color of the associated label when the option is selected.
What have you tried so far?
I am not sure how can i target the label, i have noidea
Did you do any research?
I personally would start with a phrase in a search engine like ‘MDN CSS target label of input’
here’s nothing in mdn ![]()
There’s definitely something somewhere in MDN.