<form class="radio-form"> <input checked="" value="a" name="hopping" type="radio" id="a"> <label for="a"><span></span>A</label> <input value="b" name="hopping" type="radio" id="b"> <label for="b"><span></span>B</label> <input value="c" name="hopping" type="radio" id="c"> <label for="c"><span></span>C</label> <div class="worm"> <div class="worm__segment"></div> </div> </form>
.radio-form { display: block; margin: auto; max-width: 10em; position: relative; } .radio-form input { position: fixed; top: -1.5em; left: -1.5em; }