Posted by Jonathan N. Little on 12/14/06 15:01
Karsten Wutzke wrote:
> Hi all!
>
> How do you right align text within a text field (<input ...> tag) for
> decimal/floating point values??
>
> Sorry for this short q, tried many things that don't seem to work.
>
> align="right"
> halign="right"
>
> ...don't work.
In stylesheet:
/* make right aligned */
..toright { text-align: right; }
HTML:
<input name="test" type="text" size="10" class="toright" value="sample">
> PS: is it possible to align at the decimal point?
>
Not on INPUT elements, on table cells but I believe browser support it
spotty
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|