CSS:
<div class="form-check fs-3 mb-3">
<input id="first_question" name="first_question" type="radio" value="n">
<label for="first_question">no</label>
</div>
Is there a way to apply the same border style to both the input radio button and its label after the radio has been checked?
I've attempted to use the following CSS:
.form-check:checked{
border:2px solid red;
border-radius: 4px;
color:red;
}
and:
.form-check::after{
border:2px solid red;
border-radius: 4px;
color:red;
}
However, neither of these solutions seem to be working. Can anyone offer some assistance?