Search⌘ K

Custom Range Slider Control

Create a styled horizontal range slider with a 6px track and a 16px circular thumb using only CSS for WebKit browsers. Learn how to remove default browser styles and center the thumb on the track. This lesson helps you build accessible, aesthetically pleasing custom form controls for interactive UI components.

Problem description

Given an HTML page containing an <input type="range"> element with the class custom-range, write CSS to:

  • Remove the default browser appearance of the range input.

  • Style ...