PDA

View Full Version : tables help im confused



s2kinteg916
11-27-2003, 12:12 AM
<table><tr><td>
<form action="http://www.carphotoalbums.com/photos/login.php" method="post"><input tabindex="1" type="text" name="authuser" size="15" maxlength="40" value="">
<input tabindex="2" type="password" name="password" size="15" maxlength="25">
<input type="hidden" name="url" value="http://www.carphotoalbums.com/photos/index.php">
<input tabindex="3" type="submit" name="submit" value="Login" style='font-size: 8pt; font-family: Verdana'>
<a href = "http://www.carphotoalbums.com/forums/member.php?&action=lostpw" onclick = "self.href('http://www.carphotoalbums.com/forums/member.php?&action=lostpw');"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Forgot
Password?</font></a>
</form>
</td></tr></table>


why is there a huge gap around my textbox ? im totally confused can anyone know wha tim doing wrong ?

i attached a image but it needs to be approved

s2kinteg916
11-27-2003, 12:26 AM
http://www.practiceboard.com/?629428

chromate
11-27-2003, 02:53 AM
use...

style="margin: 0 0 0 0; padding: 0 0 0 0;"

... on your table & form elements.

Mike
11-27-2003, 09:43 AM
That practiceboard looks like a good little tool, for looking at code posted here etc.

bugsy
11-27-2003, 11:01 AM
Maybe while you're at it, you can start using css instead of font tags.

MarkB
11-27-2003, 01:45 PM
Put the <form> tags outside of the <td> tags. Might not be correct HTML (or maybe it is?:p), but that works for me (it's what I always do).

chromate
11-27-2003, 06:09 PM
Well, it's not correct XHTML :). I used to do exactly the same thing though, until I discovered that a little bit of CSS does the trick.

MarkB
11-28-2003, 04:35 PM
Pah :p sloppy coding never hurt anyone :p LOL

incka
11-29-2003, 05:51 AM
It does!

Read the XHTML part of www.w3schools.com

Mike
11-29-2003, 06:51 AM
My template site has awful coding. I want to change it, but I don't have that much time at the moment.

Also that's why I want to change to CSS, asap.

MarkB
11-29-2003, 07:33 AM
Ah, yous guys gots no humour :p

incka
11-29-2003, 07:47 AM
I have. But I keep it in general chat here...

Mike
11-29-2003, 11:09 AM
Originally posted by MarkB
Ah, yous guys gots no humour :p

LOL:D :D :D :D

I have;)

GCT13
12-01-2003, 07:57 PM
Say I have a site I'm going to build this week. What are the short term and long term cons of not going the XHTML route? (instead using of old-school tables)

Mike
12-02-2003, 09:28 AM
It's supposedly easier to edit if you go the XHTML route. So if you wanted to change all the link colours, you would just edit one part of a file. Same with anything else. With HTML you would have to change all the <font> tags.