Hi all,
I have an html table where each <td> has an <input> text field.
Now I've replaced the input in just one of the columns with a textarea. For the textarea I put the identical style on the textarea as the input had--no padding, no borders, etc, and forced the font-size and height of the element to 11px and 15px--same as I'd done for the input element styles. The only change to style was I made Overflow:Hidden so I wouldn't get scrollbars.
Yet now the actual run-time height of each row in the table is a few pixels higher, and I can now see spacing around the outside of the embedded inputs as well as the textarea. So somehow the behavior of the td changes when it contains a textarea as opposed to it containing a text-type input. There is no style on the td--it has always followed the height of the embedded input. How can I fix this so my table looks identical?
Thanks,
--Jim
I have an html table where each <td> has an <input> text field.
Now I've replaced the input in just one of the columns with a textarea. For the textarea I put the identical style on the textarea as the input had--no padding, no borders, etc, and forced the font-size and height of the element to 11px and 15px--same as I'd done for the input element styles. The only change to style was I made Overflow:Hidden so I wouldn't get scrollbars.
Yet now the actual run-time height of each row in the table is a few pixels higher, and I can now see spacing around the outside of the embedded inputs as well as the textarea. So somehow the behavior of the td changes when it contains a textarea as opposed to it containing a text-type input. There is no style on the td--it has always followed the height of the embedded input. How can I fix this so my table looks identical?
Thanks,
--Jim