<label class="switch"> <div class="toggle-switch"> <input id="switch" type="checkbox" /> <label for="switch"></label> </div> </label>
.toggle-switch { position: relative; width: 80px; height: 40px; } .toggle-switch input { display: none; } .toggle-switch label { position: absolute;