Set the height and width for all checked <input> elements:
More "Try it Yourself" examples below.
The :checked selector matches every checked <input> element (only for radio buttons and checkboxes) and <option> element.
Version: | CSS3 |
---|
The numbers in the table specifies the first browser version that fully supports the selector.
Selector | |||||
---|---|---|---|---|---|
:checked | 4.0 | 9.0 | 3.5 | 3.2 | 9.6 |
Set the height and width for all checked <option> elements:
CSS Selector Reference: CSS :disabled selector
CSS Selector Reference: CSS :enabled selector