How to make an input element with 5px fill an entire <td>?
- by Bytecode Ninja
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