CSS :out-of-range selector
Complete CSS Selector Reference Manual
Example
When the input value is outside the specified range, set the specified style:
input:out-of-range
{
border:2px solid red;
}
Try it »
Definition and usage
:out-of-range selector is used to style an element when its value is outside a specified range.
Note: :out-of-range selector only applies to elements that can specify values outside a range, such as the min and max attributes of the input element.
Browser support
The numbers in the table indicate the first browser version that supports this property.
| Selector | |||||
|---|---|---|---|---|---|
| :out-of-range | 10.0 | Not supported | 28.0 | 5.2 | 11.0 |
CSS Syntax
:out-of-range
{
css declaration
;
}
Related pages
CSS selector :in-range