Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

CSS | :in-range Selector

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The :in-range selector is used to selecting all elements that are given within a particular range value. It is mostly used in an input element with type min/max attribute. 


:in-range {
    // CSS property



<!DOCTYPE html>
        <title>in range selector</title>
            h1 {
            input:in-range {
                border: 1px solid black;
            body {
        <h2>:in-range Selector</h2>
        <!-- If selected number is less then 20 and greater then
        40 then the CSS property of input elements will change. -->
        Select Number: <input type="number" min="20" max="40">



Supported Browsers: The browser supported by :in-range selector are listed below:

  • Apple Safari 5.1 and above
  • Google Chrome 10.0 and above
  • Edge 13.0 and above
  • Firefox 29.0 and above
  • Opera 11.0 and above
My Personal Notes arrow_drop_up
Last Updated : 23 Aug, 2022
Like Article
Save Article
Similar Reads
Related Tutorials