<label class="checkbox"> <input type="checkbox"> <span class="checkmark"></span> </label>
.checkbox { display: inline-flex; align-items: center; cursor: pointer; } .checkbox input[type="checkbox"] { opacity: 0; position: absolute; } .checkbox .checkmark {