The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS IE11 – Form Checkboxes won't check Reply To: IE11 – Form Checkboxes won't check


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.


lol, looks like everyone’s doing it.