read-only property CSS Reference

Definition and Usage

An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only. However it may be possible (e.g. in the context of an editor) for any element to become :read-write.


element:read-only { style properties }


input:read-only {
        color: #888888;
        font-weight: bold;

Relative articles