Forum Moderators: open

Message Too Old, No Replies

Form is pushing my table apart

         

Andrew Thomas

11:45 am on Jan 22, 2003 (gmt 0)

10+ Year Member



Im laying out a template using Tables, I have a form that i need inside a cell, but form seems to be pushing the table apart.

Is there anyway of setting the form height, ive tried the obviouse but nothing is working.

thanks

[edited by: tedster at 6:23 pm (utc) on Jan. 22, 2003]
[edit reason] remove url [/edit]

Andrew Thomas

12:00 pm on Jan 22, 2003 (gmt 0)

10+ Year Member



Ahh, dont worry, ill use header, footer method instead :)

chris_f

1:08 pm on Jan 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try putting the start of the form and the end of the form outside the table. For example...

<FORM Action .......
<TABLE .....
... CONTENT ...
</TABLE>
</FORM>

Chris

Quagmire

3:59 pm on Jan 22, 2003 (gmt 0)

10+ Year Member



Sometimes doing this in CSS cures form-related layout problems:

form { margin: 0; }

hakre

4:38 pm on Jan 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Quagmire: it's often the bottom-margin and css can solve it. to make a pure solution in html you've to break the rules. as chris_f suggested to put it around a table, won't solve on nested tables. but if you don't care on the validator, you can do this way:


<table>
<tr>
<form>
<td>
</td>
</form>
</tr>
</table>

tested it in a lot of browsers and it works very well.