CSS :indeterminate Pseudo-class
Example
Add a red shadow color to indeterminated form elements:
input:indeterminate {
box-shadow: 0 0 5px 3px red;
}
Try it Yourself »
Definition and Usage
The :indeterminate
pseudo-class selects any form element that
is in an indeterminate state.
This pseudo-class can only be used on:
- <input type="checkbox"> elements. The indeterminate property must be set to true with JavaScript
- <input type="radio"> elements, when all radio buttons with the same name value in the form are unchecked
- <progress> elements in an indeterminate state
Version: | CSS3 |
---|
Browser Support
The numbers in the table specifies the first browser version that fully supports the pseudo-class.
Pseudo-class | |||||
---|---|---|---|---|---|
:indeterminate | 39 | 79 | 51 | 10 | 26 |
CSS Syntax
:indeterminate {
css declarations;
}