zro@rtv
10-22-2006, 03:45 AM
hey, thanks in adavnce for any input!
http://r6.killerb.net/cat/exim/#page
I want the textareas to adjust to the size of the content here. Like if its one line, it should be 1 line, if its a few lines, be a few lines, unless its like 20 lines, I want it to overflow:auto.
I would think this can be done with max-height:10em and overflow:auto,
but it doesnt seem to be working. I think this may be because they are textareas which require the cols and rows attributes and already do some sort of overflow handling? is this true?
The only reason I'm using textarea elements is because I want to be able to have the JS onclick event select all the text in the element, and i couldnt get it to work with a pre tag. Perhaps this is my flaw and it is possible to select all onclick in a pre?
thanks again!
http://r6.killerb.net/cat/exim/#page
I want the textareas to adjust to the size of the content here. Like if its one line, it should be 1 line, if its a few lines, be a few lines, unless its like 20 lines, I want it to overflow:auto.
I would think this can be done with max-height:10em and overflow:auto,
but it doesnt seem to be working. I think this may be because they are textareas which require the cols and rows attributes and already do some sort of overflow handling? is this true?
The only reason I'm using textarea elements is because I want to be able to have the JS onclick event select all the text in the element, and i couldnt get it to work with a pre tag. Perhaps this is my flaw and it is possible to select all onclick in a pre?
thanks again!