<div class="toggle-switch"> <input type="checkbox" id="toggle" class="toggle-input" /> <label for="toggle" class="toggle-label"></label> </div>
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 24px; margin: 10px; } .toggle-switch .toggle-input { display: none; }