Log in

View Full Version : How do you add HTML to a textarea?



allysonnlettie
07-19-2005, 01:11 PM
I am using dreamweaver and added a textarea to the center of my site. I want to add html to this textarea, how do i do that? I cannot figure out how to enable it.

If this is not possible, what are some work arounds?

IanMarlowe
07-19-2005, 01:22 PM
what do you want to put in it?

I'm no html expert, but I don't think you can have functioning code inside the box, only outside of it.

I mean, you could format the box. e.g



<textarea style="color: white; background-color: black; border:none" cols="75" rows="10">
some text some text some text some text some text some text some text some text
some text some text some text some text some text some text some text some text
some text some text some text some text some text some text some text some text
some text some text some text some text some text some text some text some text
some text some text some text some text some text some text some text some text
some text some text some text some text some text some text some text some text
</textarea>

allysonnlettie
07-19-2005, 01:35 PM
Ya I did that with a style sheet outside of the document. Right now i transfered everything into a draw layer and that allows html. Can i add a scroll bar to this at some point if theres a lot of text?

Twey
07-19-2005, 03:19 PM
I don't know anything about Dreamweaver, being (very) distrustful of WYSIWYG editors. However, depending on the CSS overflow property, most elements usually provide a scrollbar if it becomes necessary.