Input Settings
16px
Preview:
Preview
Generated CSS & HTML
.custom-checkbox {
position: relative;
display: inline-block;
width: 16px;
height: 16px;
}
.custom-checkbox input {
opacity: 0;
position: absolute;
width: 0;
height: 0;
}
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 16px;
width: 16px;
background-color: #fff;
border: 2px solid #d1d5db;
border-radius: 2px;
transition: all 0.3s ease;
}
.custom-checkbox:hover input ~ .checkmark {
border-color: #0071e3;
}
.custom-checkbox input:checked ~ .checkmark {
background-color: #0071e3;
border-color: #0071e3;
}
.checkmark:after {
content: "";
position: absolute;
display: none;
left: 4.8px;
top: 1.6px;
width: 4.8px;
height: 9.6px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.custom-checkbox input:checked ~ .checkmark:after {
display: block;
}