Home › Forums › CSS › IE11 – Form Checkboxes won't check › Reply To: IE11 – Form Checkboxes won't check
June 13, 2014 at 1:38 pm
#172697
__
Participant
Labels are HTML.
<label><input type=checkbox> Click here for Checkbox #1.</label>
<!-- if the input is not _inside_ the label, you MUST add a <code>for</code> attribute
(you MAY add a <code>for</code> attribute anyway, if you wish). -->
<input type=checkbox id=box2>
<label for=box2> Click here for Checkbox #2.</label>
They can be selected in CSS, like any other element.
label{ color: red; }
label>input[type=checkbox]{ border: 1px dashed purple; }
label[for=box2]{ background: gold; }
As you can see, to be easily selected, you’ll probably want to add an id
or for
attribute.
owlinargyle
lol, looks like everyone’s doing it.