tags:

views:

53

answers:

4

There is a way to create a right-to-left text-direction select tag in HTML?

The following works in IE, but in Firefox only align the text and in Chrome nothing...

<select dir="rtl">
<select style="direction: rtl;">
A: 

check by floating it right and left...

Shabir Gilkar
only changes it's location not direction...
Nir
A: 

It works fine for me on Chrome 8.x dev. I'm sure it is a bug that's already fixed.

See: http://jsfiddle.net/Qjxv6/

Harmen
Most common users are using Chrome 7. there is no solution? and what about Firefox?
Nir
A: 

It is also fine to me...

Shabir Gilkar
+1  A: 

In Firefox I think you'll also need to set bidi-override:

<select dir="rtl" style="direction: rtl; unicode-bidi: bidi-override;">
    <option style="direction: rtl; unicode-bidi: bidi-override;">test</option>
</select>
robertc