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