View Full Version : divs & pics within <textarea>

03-06-2010, 09:17 PM
I want to use a scrollable textarea field within my page.

In the textarea area I want to put divs and pictures, but when I encapsulate the code with the textarea tags, all inside the tags just comes up as code, not divs and pics.

Is there a way to do this?

I basically have a page with different categories on the left and clicking one uses java to show the contents for that category in the middle of the page. One of the categories has a lot of info, and the only way to show this properly is to make the whole page really really long, which looks odd for the other categories.

Thanks for reading.

03-06-2010, 11:28 PM
A text area is part of a form and is meant to contain, logically enough, text.

You want to use a div with the following properties set in CSS:

height: XXpx;
width: XXpx;
overflow: scroll;

03-06-2010, 11:36 PM

You managed to rinse me out and provide the solution, all within 5 lines!!

Love you baby!