ExampleSet a background color for all checked input elements:
Try it yourself » |
The :checked selector matches every checked input element (only for radio buttons or checkboxes).
The :checked selector is only supported in Opera.