PDA

View Full Version : divs & pics within <textarea>


action711
03-06-2010, 10: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.

DWcourse
03-07-2010, 12:28 AM
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;

action711
03-07-2010, 12:36 AM
Beautiful!

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

Love you baby!