Was wondering if anyone out there knows if vertical orientation on a input
type range is possible in FireFox.
I know in Chrome and Safari you can do:
-webkit-appearance: slider-vertical;
And I tried something like this in FireFox:
HTML
<input type="range" name="range" min="0" max="9" step="1" value="3" />
CSS
input[name=range] {
width: 150px;
height: 10px;
-moz-transfrom: rotate(270deg);
}
Even though this does create the effect that I would like, the orientation of the range input
default pointer still requires one to drag left and right for it to change, and not up and down as expected.
Here is an Example, must be viewed in FireFox.
Any new and exciting information on the subject would greatly be appreciated, thanks!
For Chrome, use -webkit-appearance: slider-vertical . For IE, use writing-mode: bt-lr . For Firefox, add an orient="vertical" attribute to the html. Pity that they did it this way.
To create a vertical slide, edit the range slider field and in the advanced tab enter wsf-range-vertical into the Classes –> Field Wrapper setting. Add the following custom CSS to your website to adjust the height of the range slider.
To style the range input with CSS you'll need to apply styles to two pseudo-elements: ::-webkit-slider-thumb and ::-webkit-slider-runnable-track . Find out how you can apply custom styling and make the range input more functional and appealing. Contents of the article: CSS selectors for the range input.
It looks like in the recent updates for Firefox, they have solved this problem. Here is the updated fiddle
<input type="range" name="range" min="0" max="9" step="1" value="3" />
And the CSS
input[name=range] {
position:relative;
top: 100px;
width: 150px;
height: 10px;
border: 0
-webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg);
transform: rotate(270deg);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With