Bootstrap Form Range

You can style <input type="range"> controls with .form-range class. The track (the background) and thumb (the value) are both styled to appear the same across browsers.

images/coding/coding03.webp

For example,

<label for="range1" class="form-label">Example range</label>
<input type="range" class="form-range" id="range1">

1. Disabled

Add the disabled boolean attribute on the input element to give it a grayed out appearance, remove pointer events and prevent focusing.

2. Min and Max

Range inputs have implicit values for min 0 and and max 100. You can specify new values for those using the min and max attributes.

3. Steps

By default, range inputs "snap" to integer values. To change this, you can specify a step value. For example, to double the number of steps, use step="0.5".