What’s the CSS to make a label of a checked checkbox have a certain style?
This is basically what I want, except I want the label to have the background: blue, not the checkbox.
.results .auto-share-options li label input[type='checkbox']:checked {
background: blue;
}
You can’t ascend with CSS selectors at this current time and checkbox
inputelements are empty elements, so you can’t look for a descendentlabelelement either.You would need to use JavaScript to achieve this.