My problem is that i couldn't align the text in the textbox from the right side...
Generally this kind of align are used in Calculator... where digits are align from the right side...
i want to do this in HTML by using javascript....
My problem is that i couldn't align the text in the textbox from the right side...
Generally this kind of align are used in Calculator... where digits are align from the right side...
i want to do this in HTML by using javascript....
Share Improve this question asked Feb 23, 2011 at 13:53 hiren gamithiren gamit 2,1736 gold badges25 silver badges23 bronze badges 2-
use css or style tag in html with
text-align: right
– Tae-Sung Shin Commented Nov 14, 2012 at 2:27 - possible duplicate of How can I right-align a text box? – Tae-Sung Shin Commented Nov 14, 2012 at 2:28
1 Answer
Reset to default 3<input type="text" style="text-align: right" />
should work.
Other interesting attributes are: direction:rtl;unicode-bidi:bidi-override;