There is such a code, according to the idea when you click on the radio button, the backround color of the div `a should, but for some reason this does not happen. It seems simple, but not clear. I would be grateful for the help!
.test{ height:100px; width:100px; background: #000; } .check-game-blue:checked + .test{ background: blue; } .check-game-red:checked + .test{ background: red; } <label class="drop"><input type="radio" name="check-game" class="check-game-blue" checked>Синий</label> <label class="drop"><input type="radio" name="check-game" class="check-game-red">Красный</label> <div class="test"></div>