Select using rtl direction does not work in Firefox

I want to make a choice that opens from right to left.

This is what I see in Google Chrome (correct)

Chrome

and this is what I take with Firefox (error)

Firefox

Here is the code and example: http://jsfiddle.net/nxTTd/65/ ...

How can i fix this? Many thanks

0
source share
4 answers

, . , , , Chrome , Firefox . , <option> ltr, , , a <select> , , , <option>. RFC, , , , Mozilla, .

, : <select>, , , <select> - , <div> s, CSS Javascript. , , , , .

+1

auto, , , , .option_class, .

.select_class {
 width:auto;
 direction: rtl;
 text-align:left;
 text-overflow: ellipsis;
  }
+1

text-overflow: ellipsis; .select_class css.

0

@Luca Black , .

.select_class {
    direction: rtl;
    text-align: left;
    text-overflow: ellipsis;
    width: auto;
}

, 150px auto. Firefox.

0

Source: https://habr.com/ru/post/1547947/


All Articles