Click to See Complete Forum and Search --> : Help with form height


BOB101
02-15-2006, 07:49 PM
Hi,

When I set the height for a form object, it is placed at the top and the text is cut off. How do I change the text to fit the form object's size and place it in the middle?

Thanks,
BOB101

mrmazur
02-15-2006, 07:52 PM
Did you adjust the font size for that form object class? You may need to specify a smaller font.

BOB101
02-15-2006, 08:03 PM
Thanks I fixed the text size thing now if I can get an answer on how to get the text fields centered with the text instead of at the top of the div.

Gaurav Khanna
02-17-2006, 03:04 AM
<div id="login" align="center">
<form action="user/login.php" method="post" name="login">
Username: <input class="login" name="username" type="text" value="Username" size="10">
Password: <input class="login" name="password" type="password" value="password" size="10">
<input class="login" name="login" type="submit" value="Login">
</form>
</div>

----------------------
or

<div id="login" style="text-align:center">
<form action="user/login.php" method="post" name="login">
Username: <input class="login" name="username" type="text" value="Username" size="10">
Password: <input class="login" name="password" type="password" value="password" size="10">
<input class="login" name="login" type="submit" value="Login">
</form>
</div>

ray326
02-17-2006, 10:36 AM
how to get the text fields centered with the text instead of at the top of the divVertical align or horizontal align?

Gaurav Khanna
02-20-2006, 01:46 AM
html tag
--------------------
align="center"
-----------------------

in css tag
----------------------------
style="text-align:center"
-----------------------------
vertical align is used in css for align the object top, middle and bottom

text align is used in css for align the objects in left, center and right
where as horizontal align is not used in css