Szabo Zoltan wrote:

> As we know the </form> tag makes a html new line (like a <br>) (in Ns 
> 4.x, IE, Opera, Mozilla builds<9.4).
> That is why designers put the <form> </form> tags not into <td> or not 
> just inside text, cause </form> tag makes a new linek in html. I don't 
> know if it is a html bug in another browsers (maybe it is, cause stupid 
> thing to put a new line "<br>" after form tag), but any site which use 
> form tag inside a table, puts the <form> </form> not in td.
> 
> ------
> The following table shows how other browsers would like to get the form 
> inside the table, to not perform that empty line after. But this makes 
> new mozilla  to put an empty line int the top of table, so it looks like 
> an empty table row. (like an: <tr><td>&nbsp;</td></tr>)
> 
> <table width=100% border=1 bgcolor='#55ee55'>
> <tr >
> <form action='some'>
> <td bgcolor='#55ee55'>
> <select name=name>
> <option value='1'>1
> </select>
> </td>
> </form>
> </tr>
> </table>
> 
> --------
> If i make it like new mozilla would like to get all other browsers says, 
> lets put the new line after <form> tag.
> 
> <table width=100% border=1 bgcolor='#55ee55'>
> <tr >
> <td bgcolor='#55ee55'>
> <form action='some'>
> <select name=name>
> <option value='1'>1
> </select>
> </form>
> </td>
> </tr>
> </table>
> 
> 
> The question is just, this will remains like this in future or will be 
> fixed?


It's unlikely to be fixed as the above HTML is invalid, you need to do 
something like this:

<form style="margin:0; padding:0">
<table>
<tr><td></td></tr>
</table>
</form>


And it will resolve all your form spacing woes whilst being perfectly valid.

ian.


Reply via email to