<label class="switch"> <input type="checkbox" /> <span class="slider"></span> </label>
.switch { font-size: 20px; position: relative; display: inline-block; width: 5em; height: 2.5em; } .switch input { opacity: 0; width: 0; height: 0;