my current markup is as follows:
<li class="multi_answer"> <label for="checkbox2"> <div class="multi_answer_box"> <input type="checkbox" id="checkbox2" name="checkbox2" class="multi_box" /> </div> <div class="multi_answer_text">Checkbox Label</div> </label> </li>
works great in everything BUT firefox.
after checking the markup, he reads it like ...
<li class="multi_answer"> <label for="checkbox1"> </label> <div class="multi_answer_box"> <input id="checkbox1" class="multi_box" type="checkbox" name="checkbox1"> </div> <div class="multi_answer_text"> Increased counseling staff </div> </li>
ideas why FF will interpret it this way?
I also use this css
.multi_answer label:hover { background:#DDD; } .multi_answer_box input { padding-left:5px; padding-right:5px; float:left; height:48px; width:48px; } .multi_answer label { overflow: auto; cursor:pointer; width:auto; margin:10px; padding: 10px; -moz-border-radius: 7px; border-radius: 7px; background:#CCC; display:block; }
http://jsfiddle.net/NhD3r/1/ <---- working example
source share