There is an example of styling. How to make the number on the right be in the slider's circle?
/* Стиль кнопки листалки */ input[type=range] { -webkit-appearance: none; max-width: 100%; margin: 0px; background-color: transparent; padding: 0px; border: none; height: auto; } input[type=range]::-webkit-slider-runnable-track { max-width: 100%; height: 7px; border:none; box-shadow:inset 0px 0px 1px rgba(0,0,0,0.1); -webkit-box-shadow:inset 0px 0px 1px rgba(0,0,0,0.1); background-color: #e1d7be; border-radius: 5px; } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; border: none; height: 24px; width: 24px; border-radius: 50%; background-color: #5b4a38; margin-top: -10px; } input[type=range]::-moz-range-track { max-width: 100%; height: 7px; border:none; box-shadow:inset 0px 0px 1px rgba(0,0,0,0.1); -webkit-box-shadow:inset 0px 0px 1px rgba(0,0,0,0.1); background-color: #e1d7be; border-radius: 5px; } input[type=range]::-moz-range-thumb { -webkit-appearance: none; border: none; height: 24px; width: 24px; border-radius: 50%; background-color: #5b4a38; margin-top: -10px; } input[type=range]::-ms-track { -webkit-appearance: none; border: none; height: 24px; width: 24px; border-radius: 50%; background-color: #5b4a38; margin-top: -10px; color: transparent; } input[type=range]::-ms-thumb { border: none; height: 16px; width: 16px; border-radius: 50%; background: goldenrod; } <form name="nomer_scrollbar"> <input type="range" name="ageInputName" id="ageInputId" min="1" max="$num_pages" oninput="ageOutputId.value = ageInputId.value" value="1" /> <output name="ageOutputName" id="ageOutputId">1</output> </form>