pseudo-class

:indeterminate — CSS reference

Matches controls in an indeterminate state, including a checkbox set through its indeterminate DOM property or a progress element without a value. It is independent of a checkbox’s checked property.

Formal Syntax & Structure

css syntaxcss
:indeterminate

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a,#b {color:#202020} #a:indeterminate {color:#006050}</style><body><label><input id="a" type="checkbox">Select all</label><label><input id="b" type="checkbox">Other</label><script>a.indeterminate=true;</script></body></html>
CSS Reference