Solved

Widen the input cell

Posted on 2012-04-03
3
367 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is it obvious to anyone what on earth has happened to these page layouts - wordpress, css 5 48
Secure log in 'box' 4 43
type of website 13 53
SSL unsecure page mystery 17 46
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

738 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