One option would be to float the input
element to the left and then change the display of the span
element to table
. (example)
label > input {
float:left;
}
label > span {
display:table;
}
It's worth noting that IE7 doesn't support display:table
.
Alternatively, change the display of the span
element to block
and add a margin-left
value equal to the width of the checkbox element + padding.. (example)
label > span {
margin-left:28px;
display:block;
}