CSS3 :out-of-range Selector
Select and style only if the value of the <input> element is "out of range":
border: 2px solid red;
Try it yourself »
Definition and Usage
The :out-of-range selector selects all elements with a value that is outside a specified range.
Note: The :out-of-range selector only works for elements with range limitations, such as input elements with min and max attributes.
Tip: Use the :in-range selector to select all elements with a value that is within a specified range.
The numbers in the table specifies the first browser version that fully supports the selector.
CSS Selector :in-range
Thank You For Helping Us!
Your message has been sent to W3Schools.