You are here: Re: Text field text alignment « HTML « IT news, forums, messages
Re: Text field text alignment

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация