Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 input type range for firefox orientation vertical?

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!

like image 244
Romes Avatar asked Dec 07 '11 17:12

Romes


People also ask

How do you convert input type range to vertical?

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.

How do you make a vertical range slider?

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.

How do you style range input?

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.


1 Answers

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);
}
like image 118
Romes Avatar answered Nov 15 '22 17:11

Romes