dkperez
02-08-2010, 07:55 AM
I have a basic multi-column tabular form. In one column I have a comment field that may contain more text than will fit in the field space on-screen. Currently, it scrolls horizontally, which is not very usable.
I would like to have vertical scrolling in the table cell. When the form displays, if the cell contains more data than will fit in the horizontal space I'd like it to wrap and be visible, pushing the next row down so the cell displays the whole set of text within the cell area. Only then should the scrollbar show up.
If the user enters data (this is an input text field), I'd like it to do the same thing. Wrap on word boundaries and stay visible rather than scrolling a single line horizontally.
I found the whole "div" scroll thing, and it works fine EXCEPT (apparently) when the TD contains an input field. How do I do this in html? Or, at worst, with a little CSS? Or, even worse, very simple javascript?
I would like to have vertical scrolling in the table cell. When the form displays, if the cell contains more data than will fit in the horizontal space I'd like it to wrap and be visible, pushing the next row down so the cell displays the whole set of text within the cell area. Only then should the scrollbar show up.
If the user enters data (this is an input text field), I'd like it to do the same thing. Wrap on word boundaries and stay visible rather than scrolling a single line horizontally.
I found the whole "div" scroll thing, and it works fine EXCEPT (apparently) when the TD contains an input field. How do I do this in html? Or, at worst, with a little CSS? Or, even worse, very simple javascript?