EasyCFM.COM ColdFusion Forums / Coding Help! / (2) text boxes same length. HOW?

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: (2) text boxes same length. HOW?

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

derekwit
05-22-2006 @ 1:58 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 31
Joined: Mar 2006

I have a simple customer login box Username name and Password.  The password
box is of course password type text box and the Username is just a regular
text box.  For some reason the password box is shorter.  How to I make them
the same size.

Thanks for the help in advance.

MikeBam
05-22-2006 @ 2:10 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 237
Joined: Jul 2003

<input type="text" name="user" size="32">
<input type="password" name="pw" size="32">

Thanks,

Mike

JJfutbol
05-22-2006 @ 2:12 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 1250
Joined: Nov 2004

You have to use CSS to make them the same width. If you don't use any external CSS just use inline styles for example do the following:

<input type="text" style="width:200px;" />
<input type="password" style="width:200px;" />

And you should get 2 text boxes with the same width.

----------------------------------------------------
Need FREE CF applications?? Then my site has it all, http://www.javier-julio.com/development/coldfusion/downloads/ In time I will be including many more free CF apps and ASP ones as well. Currently working on a fully accessible Forum, which validates as full CSS and XHTML 1.0 Strict. It will be open source and available to all.


Website Designed and Developed by Pablo Varando.