How to make an input element with 5px fill an entire <td>?

Posted by Bytecode Ninja on Stack Overflow See other posts from Stack Overflow or by Bytecode Ninja
Published on 2010-06-17T05:36:49Z Indexed on 2010/06/17 5:43 UTC
Read the original article Hit count: 141

Filed under:
|

I have a text input inside a <td> that has a padding of 5px; When setting its width to 100% it comes out of the boundaries of the <td> for 10px. Is there a way to make it fill the entire <td> (i.e. in practice its width should become 100% - 10px) without using JavaScript?

Thanks in advance

© Stack Overflow or respective owner

Related posts about html

Related posts about css