/form making table go odd
Posted
by noryb009
on Stack Overflow
See other posts from Stack Overflow
or by noryb009
Published on 2010-05-17T22:21:30Z
Indexed on
2010/05/17
22:30 UTC
Read the original article
Hit count: 165
html
I have a table (3x3) that counts "< /form>" as space in IE. The code for 1 td looks like:
<style type="text/css">
table
{
border-width: 0px;
border-collapse: collapse;
padding: 0px;
}
td, th
{
padding: 0px;
}
</style>
<table><tr><td><form name="form" action="index.php" method="post"><input type="hidden" name="from" value="a" /><input type="image" src="pic1.gif" alt="1" name="submit" value="submit" /></form></td>
There is no spaces anywhere outside the tags. Inside the td, there is a form, with a hidden field and a picture. Firefox shows only the picture, but IE has spaces between the rows.
I did a little debugging, and found it was from the /form. Does anyone know a fix to this?
© Stack Overflow or respective owner