Styling a checkbox with css only. Checkbox definition uses shorthand definition and not span and label to define the text.
input[type="checkbox"] + label span {
display:inline-block;
width:19px;
height:19px;
margin:-1px 4px 0 0;
vertical-align:middle;
cursor:pointer;
}
Hello world!<input name="status" id="status" type="checkbox" />
I would like to see a blue border when the user hovers over the checkbox. What is diffirent for my question is that it uses short hand notation. There is no explicit label, or span element that you can manipulate to get a certain effect.