<label class="container" for="burger"> <input type="checkbox" class="input" id="burger" /> <svg width="160" height="140" viewBox="0 0 42.333332 37.041667"> <rect style="font-variation-settings:normal;display:inline;vector-effect:none;fill:transparent;fill-opacity:1;stroke:none;stroke-width:0.0542891;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none" width="42.333332" height="37.041668" x="-4.4451109e-09" y="1.0613585e-05" ></rect>
.container .input { display: none; } .container { width: 25rem; cursor: pointer; display: flex; justify-content: center; }