Board index » html » How to right align elements in select

How to right align elements in select

2006-07-18 08:31:00 PM
Hi,
In mozilla/firefox the right align work fine
In I.E not working.
<select style="text-align:right">
<option style="text-align:right">12,400</option>
<option style="text-align:right">48,450,000</option>
<option style="text-align:right">320</option>
</select>
(The Dir="RTL" is not a good solution.)
thank you
j.r
-
 

Re:How to right align elements in select

yaweli@gmail.com wrote:
Quote

In mozilla/firefox the right align work fine
In I.E not working.

An IE limitation.
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
-

Re:How to right align elements in select

yaweli@gmail.com <yaweli@gmail.com>scripsit:
Quote
In mozilla/firefox the right align work fine
In I.E not working.

<select style="text-align:right">
<option style="text-align:right">12,400</option>
<option style="text-align:right">48,450,000</option>
<option style="text-align:right">320</option>
</select>
There's no simple way around this IE limitation in its <select>
implementation, so it might be a good idea to use a set of radio buttons and
associated labels in a table instead. The labels (in this case, the numbers)
could then be right-aligned easily, even using just HTML. More info:
www.cs.tut.fi/~jkorpela/forms/choices.html#select-inflex
--
Jukka K. Korpela ("Yucca")
www.cs.tut.fi/~jkorpela/
-

Re:How to right align elements in select

In message <7S3xg.24091$Jr.471@reader1.news.jippii.net>, Jukka K.
Korpela <jkorpela@cs.tut.fi>writes
Quote
In mozilla/firefox the right align work fine
In I.E not working.

<select style="text-align:right">
<option style="text-align:right">12,400</option>
<option style="text-align:right">48,450,000</option>
<option style="text-align:right">320</option>
</select>

There's no simple way around this IE limitation in its <select>
implementation
What about a non-proportional font, and pre-prending the appropriate
number of non-breaking spaces?
--
Andy Mabbett
Say "NO!" to compulsory ID Cards: <www.no2id.net/>
Free Our Data: <www.freeourdata.org.uk>
-

Re:How to right align elements in select

Andy Mabbett <usenet200309@pigsonthewing.org.uk>scripsit:
Quote
There's no simple way around this IE limitation in its <select>
implementation

What about a non-proportional font, and pre-prending the appropriate
number of non-breaking spaces?
I wouldn't call it a simple way, and it produces rather ugly appearance, and
it doesn't even make the elements right-aligned on IE. (For some odd reason,
IE leaves some space - corresponding to about two space characters - to the
right of the <option>contents if you try this trick.)
--
Jukka K. Korpela ("Yucca")
www.cs.tut.fi/~jkorpela/
-