Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Web Design & Development Web Design & Development
Search Search
Search for:
Tech Support Guy > > >

Solved: need to shorten input boxes


(!)

ckdoublenecks's Avatar
ckdoublenecks ckdoublenecks is offline ckdoublenecks has a Profile Picture
Member with 112 posts.
THREAD STARTER
 
Join Date: May 2009
Location: florida
Experience: Intermediate
04-Sep-2010, 10:54 AM #1
Solved: need to shorten input boxes
most of the fields are only 4 characters long but when the table is displayed, I have to scroll across to update because all the boxes are so long. Is there a way to avoid this?


PHP Code:
<table cellspacing=0 cellpadding=0 border=1>
<tr>
<th>dep</th>
<th>tenant</th>
<th>apt</th>
<th>paid</th>
<th>due</th>
<th>prev</th>
<th>misc</th>
<th>tentpay</th>
<th>hudpay</th>
<th>datepaid</th>
<th>comments</th>
</tr>";
while($row = mysql_fetch_assoc($result))
{
echo "<tr>
<td><input type='text' name='dep' value='" . $row['dep'] . "'></td>
<td><input type='text' name='name' value='" . $row['name'] . "'></td>
<td><input type='text' name='apt' value='" . $row['apt'] . "' readonly style='border:none;' onmouseup='this.blur()'></td>
<td><input type='text' name='amtpaid' value='" . $row['amtpaid'] . "'></td>
<td><input type='text' name='rentdue' value='" . $row['rentdue'] . "' readonly style='border:none;' onmouseup='this.blur()'></td>
<td><input type='text' name='prevbal' value='" . $row['prevbal'] . "'></td>
<td><input type='text' name='misc' value='" . $row['misc'] . "'></td>
<td><input type='text' name='tentpay' value='" . $row['tentpay'] . "'></td>
<td><input type='text' name='hudpay' value='" . $row['hudpay'] . "'></td>
<td><input type='text' name='datepaid' value='" . $row['datepaid'] . "'></td>
<td><input type='text' name='comments' value='" . $row['comments'] . "'></td>
</tr>";

FusionLord's Avatar
FusionLord FusionLord is offline
Computer Specs
Member with 91 posts.
 
Join Date: Jan 2009
Location: Phoenix, Az
Experience: Advanced
04-Sep-2010, 11:42 AM #2
Yes, Add the ' Width="##px" ' tag to your input boxs and mess with the pixel values till you get what you like or add ' <br /> between them so there is a line brake in between them.

~FusionLord~
ckdoublenecks's Avatar
ckdoublenecks ckdoublenecks is offline ckdoublenecks has a Profile Picture
Member with 112 posts.
THREAD STARTER
 
Join Date: May 2009
Location: florida
Experience: Intermediate
04-Sep-2010, 01:22 PM #3
thanks, I just added size to the inputs
FusionLord's Avatar
FusionLord FusionLord is offline
Computer Specs
Member with 91 posts.
 
Join Date: Jan 2009
Location: Phoenix, Az
Experience: Advanced
04-Sep-2010, 01:28 PM #4
Okay, Please mark as Solved.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Title Thread Starter Forum Replies Last Post
Excel Marco with Input Box to filter data queenbee_A Business Applications 1 03-Jan-2010 05:00 PM
Trojan SPM/LX - help needed to remove malware braemar243 Virus & Other Malware Removal 0 10-Aug-2009 09:15 PM
WoW driver needs to be updated Dominicneedshelp Games 0 05-Aug-2009 11:10 AM
Need to transfer data from PC-formatted HD to Mac zavulon Hardware 0 28-Feb-2009 10:31 PM
Solicit user info using input boxes izzyq Business Applications 1 27-Mar-2002 06:17 PM

WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑

Content Relevant URLs by vBSEO 3.3.2