Hello everyone, I'm feeling a bit puzzled as to why the margin
in my CSS
isn't applying correctly to the checkbox
element. Below is an example of the code I'm using:
HTML:
<div class="panel">
<input id="bodytype-checkbox" class="float-checkbox" type="checkbox"/>
<label for="bodytype-checkbox" class="label-checkbox">Bodytype</label>
</div>
CSS:
.float-checkbox{
float:left;
margin: 10px 10px 0 0;
cursor: pointer;
}
Any insights on what might be causing this issue? Here's the fiddle link for reference: http://jsfiddle.net/LvhCh/38/