Forum Moderators: not2easy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Sample Textarea</title>
<style type="text/css">
* {width:100%; height:100%; margin:0; border:0; padding:0; background:#D3D3D3;}
textarea {overflow:auto; box-sizing:border-box; -moz-box-sizing:border-box; padding:6px;}
</style>
</head>
<body>
<form action="#">
<textarea rows="1" cols="1">This is some text.</textarea>
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Sample Textarea</title>
<style type="text/css">
* {
margin:0;
border:0;
padding:0;
}
html, body, div, form, textarea {
width:100%;
height:100%;
background:#D3D3D3;
}
textarea {
overflow:auto;
padding:10px;
resize:none;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
@-moz-document url-prefix() {
div {
-moz-box-sizing:border-box;
box-sizing:border-box;
padding:0 10px 0 0;
overflow:hidden;
}
textarea {
-moz-box-sizing:content-box;
box-sizing:content-box;
margin:0 0 0 10px;
padding:0 10px 0 0;
}
}
</style>
</head>
<body>
<form action="#">
<div>
<textarea rows="1" cols="1">This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. </textarea>
</div>
</form>
</body>
</html>