Forum Moderators: not2easy
Thanks.
<html>
<head><style type="text/css"> <!--
body {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
}
div#fixed {
width: 800px;
height: 400px;
padding: 10px;
overflow-x: hidden;
overflow-y: scroll;
background-color: #D5FFD5;
-moz-box-sizing: padding-box;
}
textarea {
width: 100%;
height: 5em;
overflow: auto;
font-size: 16px;
}
--> </style></head>
<body>
<div id="fixed">
<form>
<textarea>
line one
line two
line three
</textarea>
</form>
</div>
</body>
</html>
<div class="hasLayout"><textarea>
line one
line two
line three
</textarea></div>
with the following style:
div.hasLayout {
zoom: 1;
}
Then I was able to set modern doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
and remove mozilla property from the div#fixed: /* -moz-box-sizing: padding-box; */
To make IE vs FF difference even less I also added "padding: 0px;" to the textarea style, but essential fix was adding div with "hasLayout" set to "true".
Thanks.
glad if you saw those links and they helped, (see your inbox for more info)
We have a couple of threads here on hasLayout [webmasterworld.com] too, which include the IE source and reference to Ingo Chao's article too (two of the links in the original post) - admittedly I did not think that this was a hasLayout issue, I thought it was plain ol' Box Model BUT it appears I was wrong so forgive me :o
did you find a solution?
Suzy