<label class="switch"> <input type="checkbox"> <span class="slider"></span> </label>
.switch { position: relative; display: inline-block; width: 120px; height: 34px; } .switch input { display: none; } .slider {