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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically Resizing Textareaa

Status
Not open for further replies.

ca1801

Technical User
May 16, 2001
1
CA
I am trying to create a text area that resizes to what ever is pasted into it. I am looking to make a notepad sort of feel in a fixed area on the page, so that the textarea doesnt break any lines of the inserted text. I only expect it to work in IE.

heres the code i have so far:

<html>
<head>
<title>Textarea</title>
<style type=&quot;text/css&quot;>
div.contentfield {width: 400px;
height: 400px;
overflow: auto;
background-color: #ffffff;}
</style>
</head>
<body bgcolor=&quot;#000000&quot;>
<br><br>
<center>
<div class=&quot;contentfield&quot;>
<textarea style=&quot;width: 500; height: 500px;&quot;>
</textarea>
</div>
</center>
</body>
</html>

If anyone can help me with this it would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top