Creating a vertical slider HTML element
12,926
input[type="range"] {
position:absolute;
-webkit-transform: rotate(90deg);
top:100px;
}
<input type="range">
Author by
sazr
Updated on June 27, 2022Comments
-
sazr almost 2 years
I am trying to create my own HTML element that looks like this:
The look I want to create: My attempt:
The widget is only for a iPad version of the website & I cannot unfortunately use JQuery.
My problem: I am trying to add a slider/arrow to the widget but I dont know how? Is there a webkit appearance that has an arrow slider on it? Is it possible to have a slider arrow on the widget?
My code:
<div style="background-color: rgb(191, 326, 383); width: 200px;"> <ul style="list-style: none; -webkit-appearance: slider-vertical; width: 200px; height: 300px; margin: 0;"> <li>jddsjh -</li> <li>jddsjh -</li> <li>jddsjh -</li> <li>jddsjh -</li> </ul> </div>
-
methodofaction over 12 yearsJust complementing your answer, you can also style the controls: jsfiddle.net/Wv6cU