Solved

Widen the input cell

Posted on 2012-04-03
3
361 Views
Last Modified: 2012-04-04
Hi
This is driving me mad. I want to widen the cell where the Username and Password are entered. Changing the Width just seems to move the box around the screen.
What should I do to just widen the input box?

<table class="signup" border ="0" cellpadding="2" cellspacing="5">
<form method='post' action='tm_login.php'>$error
<tr><td>Username</td><td><input type='text' maxlength='30' name='user' 	value='$user' /></td></tr>
<tr><td>Password</td><td><input type='password' maxlength='16' name='pass' 	value='$pass' /></td></tr>
<tr><td><td colspan="2" align="center">
<input type='submit' value='Login' /></td></tr>
</form></table>

Open in new window

0
Comment
Question by:jdhackett
3 Comments
 
LVL 13

Expert Comment

by:haloexpertsexchange
ID: 37802240
add a size to the input field declaration.
0
 
LVL 9

Accepted Solution

by:
wasiftoor earned 500 total points
ID: 37802273
I believe you are actually looking to increase the actual length of field (its appearance). This can be easily done using a global style sheet or using an inline reference. I am copying code here. I am using a sample size to demonstrate the change. Change these values accordingly.  LOOK for the "STYLE" specification.

Good Luck!

<input type='text' maxlength='30' name='user' 	value='$user' style="width:254px; height:44px;" />

Open in new window

0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 37802475
without a link to the page or more code I can only guess, but it is possible that the improper use of a table to do layout is the source of the problem, as the dimensions of a cell may be restricting the input sizing.

Cd&
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WIX Redirect 1 38
simplest php form 3 59
Getting Column Height to Match Other Column 5 44
remove background quote mark from widget 6 18
Find out what you should include to make the best professional email signature for your organization.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now