Custom checkbox
by Vladimir
HTML
<label>
<input type="checkbox" />
</label>
CSS
label {
width:20px;
height: 20px;
border: 1px solid blue;
display: block;
overflow: hidden;
position: relative;
}
input[type=checkbox]:after {
background: red;
content: '';
position: absolute;
top: 0;
left: 20px;
width: 20px;
height: 20px;
}
input[type=checkbox]:checked:after {
background: blue;
}
input[type=checkbox] {
left: -20px;
display: block;
position: relative;
top: 0;
padding: 0;
margin: 0;
}