Solved

Widen the input cell

Posted on 2012-04-03
3
364 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

685 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