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