Forum Moderators: not2easy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head><title></title><style type="text/css">
div {width: 400px; height: 400px; border: 1px solid #000000}
textarea {width: 100%; height: 100%}
</style>
</head><body>
<div><textarea></textarea></div>
</body></html>
since it seems noone has a really good answer to this question, i'll try asking another one. is there any way to force ie into quirks mode for just the textbox or some other type of hack i could do to just get it to work? short of setting the whole document to quirks mode, that is.
textarea {width: 100%; height: 100%} displays as expected, while still keeping box mode with the main content of the page. thought i'd post this so it'd show up in google, etc in case someone else came across this problem.
here's the code:
<!-- IE quirks mode is needed to set a textarea's height to 100% -->
<html>
<head>
<title></title>
<style type="text/css">
html, body, div, #pagetext {width: 100%; height: 100%; padding: 0; margin: 0}
body {overflow: hidden}
#pagetext {border-width: 0; border-style: none}
</style>
</head>
<body>
<div>
<textarea id="pagetext"></textarea>
</div>
</body>
</html>
then all you need is
<iframe src="..." /> in the place of where the <textarea> would normally be in the main page.