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="text/css">
div.contentfield {width: 400px;
height: 400px;
overflow: auto;
background-color: #ffffff;}
</style>
</head>
<body bgcolor="#000000">
<br><br>
<center>
<div class="contentfield">
<textarea style="width: 500; height: 500px;">
</textarea>
</div>
</center>
</body>
</html>
If anyone can help me with this it would be greatly appreciated.
heres the code i have so far:
<html>
<head>
<title>Textarea</title>
<style type="text/css">
div.contentfield {width: 400px;
height: 400px;
overflow: auto;
background-color: #ffffff;}
</style>
</head>
<body bgcolor="#000000">
<br><br>
<center>
<div class="contentfield">
<textarea style="width: 500; height: 500px;">
</textarea>
</div>
</center>
</body>
</html>
If anyone can help me with this it would be greatly appreciated.