CSS :read-write Pseudo-class

Definition and Usage

CSS :read-write Pseudo-classes are used to select form elements that the user can edit.

Form elements without the readonly attribute and the disabled attribute are defined as 'read-write'.

Example

Select and set the style of the editable input elements:

input:read-write {
  background-color: beige;
  border: 2px solid maroon;
}

Try It Yourself

CSS Syntax

:read-write {
  css declarations;
}

Technical Details

Version: CSS3

Browser Support

The numbers in the table specify the first browser version to fully support the pseudo-class.

Chrome Edge Firefox Safari Opera
1 13 78 4 9

Related Pages

Reference:CSS :read-only pseudo-class