joelwenzel
Programmer
- Jun 28, 2002
- 448
I'm having a problem removing the padding from a table in Internet Explorer. In netscape, there is no space between the span and the border or the table but in IE there is a space of about 1px between the border and the span.
<style type="text/css">
TD{
margin:0px;
padding:0px;
}
SPAN{
margin:0px;
padding:0px;
border:1px solid black;
}
</style>
...
<table cellpadding=0 cellspacing=0 border=1>
<tr><td>
<span>stuff</span>
</td></tr>
</table>
<style type="text/css">
TD{
margin:0px;
padding:0px;
}
SPAN{
margin:0px;
padding:0px;
border:1px solid black;
}
</style>
...
<table cellpadding=0 cellspacing=0 border=1>
<tr><td>
<span>stuff</span>
</td></tr>
</table>