<label class="switch"> <input type="checkbox"> <span class="slider"></span> </label>
.switch input { display: none; } .switch { width: 60px; height: 30px; position: relative; } .slider { position: absolute;