I am getting a block of text from a database, and would like to display it. I want the users to be able to see that entire block of text without scrolling up or down. I am using text area right now because my text has newline characters on it "\n", and the textarea supports it. I want the textarea to change in size depending on how large the text is....is this possible?
If not, how do I display a large amount of text without users having to scroll (they can scroll the page up and down, just not the box). Remember that it needs to suppost the "\n" character.
I can't think of an easy way to it with a Textarea.
Your scripting language should be able to replace the '\n' with a <BR> eg. in VBScript sText=Replace(sText, chr(13), "<BR>") - or something close to that. Then you can use a DIV to display the text and it will set its height according to the length of the text.