<input name="switch" id="switch" type="checkbox" /> <label class="switch" for="switch"></label>
#switch { visibility: hidden; clip: rect(0 0 0 0); position: absolute; left: 9999px; } .switch { display: block; width: 130px; height: 60px; margin: 70px auto; position: relative;