input, span { background-color : red } input:checked, input:checked + span { background-color : lime}