Need help on styling a list of radio elements
-
I’m trying, quite unsuccessfully, to do some styling on a list of radio elements. My list is quite long and when I add them in each one goes in as a span element with a label element (I enabled that). What I want to do is have the background a different color for every other one which is simple enough to do normally. However I can’t seem to figure out how the heck to do in this.
Since CF7 adds the name as a class to the main parent I’m able to target it specifically with that class – .genre-list.
What should do what I’m after is this:
span.genre-list span span label:nth-child(odd) {
background-color: #eeeeee;
}But all that does is color the background on every single label element which is NOT what I want.
Is this even possible with this since it uses a span/label combo?
Thanks.
- The topic ‘Need help on styling a list of radio elements’ is closed to new replies.