Custom Styling for input[type=”range”] in CSS


Enhance the slider appearance with custom styles for better integration with your design.

Source Code

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments