All I want is when I check the radio box or somewhere in label, the radio is checked and background color of label is change.
<div class="answer">
<label for="answer-1" class="radio-label">
<div class="answer-radio">
<input type="radio" class="space" id="answer-1" name="answer-element" />
<span for="answer-1">True</span>
</div>
</label>
<label for="answer-2" class="radio-label">
<div class="answer-radio">
<input type="radio" class="space" id="answer-2" name="answer-element" />
<span for="answer-2">False</span>
</div>
</label>
</div>
As if when I have not checked yet, bg-color is blue, and when I had checked, the bg-color is green.
My question is how can I css this without using javascript (Only html & css)