Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text area 1

Status
Not open for further replies.

gms27

Technical User
Aug 19, 2005
27
PT
Hi there,


Is there a way to make a text area uneditable in a browser? When i click on it online im able to erase / write and i dont want that.
The goal is to create a scroll box because the text is enormous.

I hope someone can help me :)

Thanks
 
If you don't want it to be editable don't use a textarea. Textareas are designed to be editable.

To create a non editable scroll area, use a <DIV> instead. with specified dimensions, and the overflow attribute set to Auto or scroll.

Code:
<div style="width:250px; height:250px; overflow:scroll;>
Lots of text here.....
</div>

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
thanks for pointing me in the right direction :)
 
Welcome, glad I could help

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top