Click to See Complete Forum and Search --> : form inside and outside <TD>


pelegk1
08-16-2004, 07:52 AM
why when i do
<form method="post">
<TD>
<input type="hidden" name="del_id" value="142">
<input type="hidden" name="weight" value="0">
<input type="hidden" name="switch" value="1">
<input type="submit" name="btn_close" style="cursor:hand;" value="לסגור סבב" >

</TD>
</form>
but when i do


<TD>
<form method="post">
<input type="hidden" name="del_id" value="142">
<input type="hidden" name="weight" value="0">
<input type="hidden" name="switch" value="1">
<input type="submit" name="btn_close" style="cursor:hand;" value="לסגור סבב" >
</form>
</TD>


when the form is on side the TD the submit button get a line under the button
but when the form is out of the cell of <TD> there snt a line spce
why is that?
thnaks in advancepeleg

ray326
08-16-2004, 07:51 PM
The first one isn't valid HTML.

Fang
08-17-2004, 01:40 AM
<form method="post" style="margin:0;">

pelegk1
08-17-2004, 05:30 AM
ray326 can u explain why it isntvalid please?

Stephen Philbin
08-17-2004, 06:26 AM
These guys (http://www.w3c.org) can explain it all for you. ;)

ray326
08-17-2004, 04:18 PM
Originally posted by pelegk1
ray326 can u explain why it isntvalid please?
Because this structure
<form method="post">
<TD>

isn't valid HTML.