PDA

View Full Version : Unwanted space in a table



skippy_421
Feb 3rd, 2003, 11:40 PM
Can someone look at this table

I can't get rid of the space between the lables and text boxes.

I'm sure there is a real simple answer, but I can't figure it out.

contact form (http://www.aride4you.com/contact99.html)

Thanks:confused:

cg9com
Feb 4th, 2003, 12:10 AM
try adding <table border="1"> you will notice the problems
you also need correct html , there are alot of errors.

Spookster
Feb 4th, 2003, 12:43 AM
Originally posted by cg9com
try adding <table border="1"> you will notice the problems
you also need correct html , there are alot of errors.

Glancing through their coding I did not see any incorrect html. Would you care to be more specific. They forgot to provide the sources for their image tags but other than that nothing is incorrect that I can see.

cg9com
Feb 4th, 2003, 12:50 AM
<table>
<tr valign="top">
<tr>
-----------------
<FONT FACE="TIMES NEW ROMAN" COLOR="#000000" SIZE="3">
<tr><td>
-----------------

2 tr's and a local font change in bitween cell specs
valign doesnt belong in tr ..... maybe not ALOT :)


paste this in, i think i managed to keep your table closer together now.
this is my try at it, hope everything is ok i made it in like 2 secs

<table border><tr><td rowspan="14">
<IMG SRC="images/nav.jpg" WIDTH="140" HEIGHT="600" usemap="#Map" ALT="" BORDER="0">
</td></tr><td colspan="2">
<IMG SRC="images/phone.gif" WIDTH="106" HEIGHT="87" ALT="Picture of a phone" BORDER="0">
<IMG SRC="images/fax3.gif" WIDTH="106" HEIGHT="87" ALT="Picture of a fax machine" BORDER="0">
<A HREF="MAILTO:[email protected]"><IMG SRC="images/email.gif" WIDTH="106" HEIGHT="87" ALT="Email icon" BORDER="0"></a>
<IMG SRC="images/mailbox1.gif" WIDTH="106" HEIGHT="87" ALT="Picture of a mailbox" BORDER="0">
</td></tr><tr><td>
<form method="POST" action="/cgi-sys/formmail.pl">
<input type=hidden name="recipient" value="[email protected]">
Name:
</td><td>
<INPUT NAME=name SIZE=40>
</td></tr><tr><td>
Phone:
</td><td>
<INPUT NAME=phone SIZE=40>
</td></tr><tr><td>
Message:
</td><td>
<TEXTAREA NAME=message COLS=38 ROWS=10 WRAP=hard></TEXTAREA>
</td></tr><tr><td>
Company:
</td><td>
<INPUT NAME=company SIZE=40>
</td></tr><tr><td>
Address:
</td><td>
<TEXTAREA NAME=address COLS=38 ROWS=4 WRAP=virtual></TEXTAREA>
</td></tr><tr><td>
City:
</td><td>
<INPUT NAME=city SIZE=40>
</td></tr><tr><td>
State:
</td><td>
<INPUT NAME=state SIZE=40>
</td></tr><tr><td>
Zip:
</td><td>
<INPUT NAME=zip SIZE=40>
</td></tr><tr><td>
E-mail:
</td><td>
<INPUT NAME=email SIZE=40>
</td></tr><tr><td>
Fax:
</td><td>
<INPUT NAME=fax SIZE=40>
</td></tr><tr><td>
Subject:
</td><td>
<INPUT NAME=subj SIZE=40>
</td></tr><tr><td colspan="2">
<input type="submit" name="Request" value="Submit This Form">
<br>
<input type="reset" name="Clear" value="Clear Form and Start Over">
</form>
</td></tr></table>


hope this helps tell me how it goes! :thumbsup:

Spookster
Feb 4th, 2003, 01:01 AM
lol Wow I must need glasses. :o Now I see them all. Once I saw one they all started popping out at me. There are quite a few mistakes.

cg9com
Feb 4th, 2003, 01:03 AM
you musta just looked at it 2 fast ;)

skippy_421
Feb 4th, 2003, 01:29 AM
Thanx cj9com that did it.

Can you guys tell me a few of the errors, I know there's a bunch of stuff in caps I need to make lowercase, but besides that?

I wanna learn to do this right!

Thanks in advance

cg9com
Feb 4th, 2003, 03:27 AM
Originally posted by skippy_421
Thanx cj9com that did it.
i dont even see him in this thread, did he forget to post? :D
are you familiar with w3.org (http://www.w3.org) and the w3schools (http://www.w3schools.com)?
also you can use the w3 html validator (http://validator.w3.org), it will help you with adhering to web standards.
or just ask these gurus here :thumbsup: