How can I position the label on top of a checkbox?
HTML:
<input type='checkbox' name='thing' value='valuable' id="thing"/>
<label for="thing">Description</label>
CSS:
input[type=checkbox] {
display:none;
}
input[type=checkbox] + label {
background-image:url(uncheck.png);
height: 20px;
width: 20px;
display:block;
padding: 0 0 0 0px;
}
input[type=checkbox]:checked +label {
background-image: url(checked.png);
background-repeat:no-repeat height: 20px;
width: 20px;
display:block;
padding: 0 0 0 0px;
}