<label class="container"> <input checked="checked" type="checkbox"> <div class="checkmark"></div> </label>
.container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; } .container { display: block; position: relative; cursor: pointer;