FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

form destroys table-based design

 


TomS
Hi guys.
I have a problem with the <form> tag.
I cannot figure out, how to keep my style.

Either I have this
Code:
<form action="script.php" method="POST">
<table>
  <tr>
    <td valign=middle><input type="text" name="input"> <input type="submit" value="Send"></td>
  </tr>
</table>
</form>
<table>
<!-- here another table with some content //-->


Then I have a space between the two tables.

When I put the form into the <td> like this:
Code:

<table>
  <tr>
    <td valign=middle><form action="script.php" method="POST"><input type="text" name="input"> <input type="submit" value="Send"></form></td>
  </tr>
</table>
</form>
<table>
<!-- here another table with some content //-->


Then the "valign=middle" options is ignored and my input fields are on top of the table cell...

What can I do?

Look forward to your answers,
regards, Thomas
Azmo
use CSS and learn how to position your stuff..
aningbo
i just tried both the codes and everthing seems perfect!! why dont u post more of the codes. may be that way, i'll get wat u r luuking at.
jabapyth
it could be a browser thing. Which one are you using?
which one is aningbo using?
TomS
>use CSS and learn how to position your stuff..

Yeah. I don't know much about css, but I could not find a solution on selfhtml.

Firefox 1.5, Firefox 2 and IE6. Always the same.

I already found a solution
Code:
<form style="display: inline">


Thanks for your answers, though.
dayveday
Definitely learn CSS, it's worth the up-hill effort! Then you can say goodbye to tables forever. Well, nearly! I like HTMLDog as it has a pretty thorough tutorial and reference.
aningbo
i'm using firefox 1.5 and IE 7.
TomS
You can see the whole code at www.pureattraction.rshost.de (german)
Simply watch Sourcecode.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.