Back to the index.
See also the CSS3 User Interface spec.
There are several pseudo-classes that are used to style the various states of form elements. This page tests some of them.
:enabled selects enabled (normal) form fields:disabled selects disabled form fields (disabled=true):checked selects form fields that are checked (in practice only checkboxes and radio buttons).Test sheet:
:enabled {
border: 2px solid #00882D;
}
:disabled {
border: 2px solid #CB000F;
}
:checked {
display: inline-block;
width: 3em;
}