Hi all – I’m currently using .inputs-list li {} as a selector to apply some styling to buttons. However, when the button is selected (in the form of radio buttons). I would like to apply a new set of styling to the buttons. I’m currently using:
#single-cap-form input[type=”radio”]:checked + .inputs-list li{
background:white !important;
}
Is this the proper way to mark this up? I was able to follow this structure to change the color of a selected span tag with:
#single-cap-form input[type=”radio”]:checked + span{
color:black !important;
}
But this is not working when changing the background color. Any ideas? I assume I just have the order wrong.
Thanks