Skip to content
All Challenges
#73

Custom Checkbox :checked Selector

Medium
Category: Selectors

Change the color of label adjacent to checked input: input:checked + label to #16a34a.

Target HTML in preview:
<input type="checkbox" id="check" checked /><label for="check">Completed</label>
Verification Criteria:
Target input:checked + label
Set color: #16a34a
styles.css
Live Evaluation
Loading...
|
Live Browser Output
Sandboxed Preview