.myclass::-webkit-slider-thumb { box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; border: 1px solid #000000; height: 36px !important; width: 4px !important; border-radius: 3px !important; background: #ffffff !important; cursor: pointer !important !important; -webkit-appearance: none !important; margin-top: -14px !important; } input[type=range] { -webkit-appearance: none; margin: 0 0; width: 100%; } input[type=range]:focus { outline: none; } .myclassBlue::-webkit-slider-runnable-track { width: 100%; height: 8.4px; cursor: pointer; animate: 0; box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; background: white; border-radius: 1.3px; border: 0.2px solid #010101; } .myclassRed::-webkit-slider-runnable-track { width: 100%; height: 8.4px; cursor: pointer; animate: 0; box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; background: gray; border-radius: 1.3px; border: 0.2px solid #010101; } input[type=range]::-webkit-slider-thumb { border: 0px; height: 0px; width: 0px; border-radius: 0px; -webkit-appearance: none; } .sliderticks { display: flex; justify-content: space-between; padding: 0px 0 0px 0px; } .sliderticks p { position: relative; display: flex; justify-content: center; text-align: center; width: 2px; background: black ; height: 12px; line-height: 45px; margin: 0 0 0 0; }