How can I make the <td> size the same as its internal content in IE?
How can I make the width and height <td>the same as its inner contents?
<table cellspacing=0 cellpadding=0>
<TBODY>
<TR>
<TD></TD>
<TD id=loginButton><BUTTON class=btn><SPAN>Login</SPAN></BUTTON></TD>
<TD id=changePasswordButton><BUTTON class=btn><SPAN>Change Password</SPAN></BUTTON></TD>
<TD id=forgotPasswordButton><BUTTON class=btn><SPAN>Forgot Password</SPAN></BUTTON></TD></TR>
</TBODY>
</table>
In the above example, I would like the td size to be the same as the size of the buttons inside it, but in IE it takes up some extra space. Solutions without JavaScript will be appreciated.
+3
2 answers