Jump to content

Text Box


duncan_cowan

Recommended Posts

Hi I created a custom text box for a login script:

<form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"><table align="center" border="0" cellspacing="0" cellpadding="3"><tr><td>Username:</td><td><br><input type="text" name="uname" maxlength="40" style="width:190px;height:14px;border:solid 1px black"></td></tr><tr><td>Password:</td><td><br><input type="password" name="passwd" maxlength="60" style="width:190px;height:14px;border:solid 1px black"></td></tr><tr><td colspan="2" align="right"><input type="submit" name="submit" value="Login"></td></tr></table></form>

But when i run it the text in the text box is to big.Please can someone tell me what is going on?

Link to comment
Share on other sites

you can either make the text box taller or change the size of the textto change the size of the text change the style of the input box

<input type="text" name="uname" maxlength="40" style="width:190px;height:14px;border:solid 1px black; font-size: 10">

hope that helps

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...