View Full Version : Textarea question

12-09-2010, 09:08 PM
Hi all, I've got a text area on my site with a scrollbar because there's just too much text to keep the page from being huge. That's not a problem, and it worked out fine. My problem is that when I navigate to that page in a browser, the text is editable by the user! Is this characteristic of a textarea? Should I be using something else if I want to display text with a scroll bar but not have it editable? Or is there a parameter I need to change?

Using Dreamweaver MX.


12-09-2010, 09:54 PM
The <textarea> tag you've used for your text is actually for forms. You should create a div tag with a fixed height and this has to be set to overflow: auto in your stylesheet (CSS) which will create a scrollbar.

<div id="content">
<p>In here your very long text</p>

#content {
height: 400px;
overflow: auto;

12-09-2010, 10:12 PM
Just what I was looking for, thanks.


12-09-2010, 10:20 PM
Great... you're welcome!