Problem mit <FORM>

Status
Nicht offen für weitere Antworten.

Chernoby

Mitglied
Hallo,

ich habe ein Probelm mit einem Formular. Also eigentlich nicht direkt mit dem Formular, sondern mit dem Aussehen der Seite...

Ich habe eine Head-Grafik, in der ich den Mitglieder-Login eingebaut habe.
Code:
<form method="post" action="login.php">
              <table width="142" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td width="106" height="33"><img src="images/la_02.gif" width="106" height="33"></td>
                  <td rowspan="3" valign="top"><img src="images/la_03.gif" width="36" height="74"><br>
                    <input type="image" src="images/la_10.gif" border="0" value="LOGIN"></td>
                </tr>
                <tr> 
                  <td background="images/la_07.gif"> 
			<table width="106" border="0" cellspacing="0" cellpadding="0" height="43">
                      <tr> 
                        <td valign="top"> 
                          <input type="text" name="username1" size="15" onFocus="style.background='#FCECBC'" onBlur="style.background='#F3F3F3'" style="font-size: 9">
                        </td>
                      </tr>
                      <tr> 
                        <td valign="top"> 
                          <input type="password" name="passwd1" size="19" onFocus="style.background='#FCECBC'" onBlur="style.background='#F3F3F3'" style="font-size: 9">
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr> 
                  <td valign="bottom" width="106" height="15"><img src="images/la_12.gif" width="106" height="15"></td>
                </tr>
              </table>
</form>


Also durch das Einbinden des Formulars entsteht unter meiner schicken Header-Grafik eine Leerzeile, die da aber gar nicht hingehört. Wenn ich den Formular-Tag rausnehme, ist die Zeile weg. Aber unglücklicherweise brauche ich ja das Formular.

Kann irgendwer helfen???
 
Hi,

das liegt am Form-Tag, kannst aber mit CSS lösen

Code:
<form method="post" action="login.php" style="margin: 0;">
...

Mfg,
crazy-weasel
 
<form method="post" action="login.php" style="margin: 0;">
^^
den Form-Tag so umändern sollte reichen..

// crazy-weasel
 
Zuletzt bearbeitet:
crazy-weasel, nette Methode - den kannte ich noch gar nicht. :)

Alternativ dazu wäre auch noch möglich, das Formularelement komplett in eine Tabelle zu stecken, dann sollte auch die Leerzeile eigentlich nicht erscheinen:
PHP:
<table>
<form ...>
</form>
</table>
Geist
 
Status
Nicht offen für weitere Antworten.

Neue Beiträge

Zurück