<div class="switch-container"> <input id="switch" class="switch" type="checkbox" /> <label class="switch-label" for="switch"></label> </div>
.switch-container { position: relative; } .switch { opacity: 0; position: absolute; } .switch-label { display: block; width: 80px;