<label class="switch-button" for="switch"> <div class="switch-outer"> <input id="switch" type="checkbox" /> <div class="button"> <span class="button-toggle"></span> <span class="button-indicator"></span> </div> </div> </label>
.switch-button { display: flex; align-items: center; justify-content: center; margin: auto; height: 55px; } .switch-button .switch-outer { height: 100%; width: 115px;