Showing posts with label text alignment in textbox. Show all posts
Showing posts with label text alignment in textbox. Show all posts
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>