If in this case you can use the script, then a great option is to connect the jQueryUI library https://jqueryui.com/slider/ . With it, you can very easily stylize sliders. Here is the simplest example from the resource itself, which I slightly modified for your task:
<script> $( function() { $( "#slider" ).slider({ range: "min", min: 0, max: 100, value: 60, slide: function( event, ui ) { $( "#amount" ).val( ui.value ); } }); $( "#amount" ).val( $( "#slider" ).slider( "value" ) ); }); </script> <p> <label for="amount">Fade:</label> <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;"> </p> <div id="slider" style="height:200px;"></div>