<label class="switch"> <input type="checkbox" class="input" /> <span class="slider"></span> </label>
.switch { position: relative; display: inline-block; width: 3.5em; height: 1.5em; } .switch .input { opacity: 0; width: 0; height: 0; }