Align text in text box using HTML
Posted by Raj
Align text in text box
In this article,I will explain how to align text in text box using TextBox TextAlign Property
There is a property called "style" which you have to set style="text-align:right"
Example:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Align text in text box</title>
</head>
<body>
<input style="text-align:center" type="text" name="Center Align" value="Center Align" />
<input style="text-align:left" type="text" name="Left Align" value="Left Align" />
<input style="text-align:right" type="text" name="Right Align" value="Right Align"/>
</body>
</html>
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
Align text in text box,
HTML,
HTML Interview Questions and Answers.,
text alignment in textbox,
text center alignment in textbox.TextBox TextAlign Property,
textbox alignment
.You can leave a response, or trackback from your own site.