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