<html>
<body>
At 04:38 AM 10/21/2006, Bernu Bernard wrote:<br>
<blockquote type=cite class=cite cite="">Hi,<br><br>
I have a big problem with IE6 with the property height :100%<br><br>
Here is a simple example :<br><br>
<font color="#0000FD">&lt;div style=&quot;position : absolute ; top :
200px ; left : 200px ; width : 200px ; height : 200px ; background-color
: #aaa ; &quot;&gt;<br>
&lt;textarea style=&quot;margin : 0 ; height:100% ; width : 100%
&quot;&gt;&lt;/textarea&gt;<br>
&lt;/div&gt;<br>
</font><br>
In IE6, only a 2 line textarea is displayed. Other browsers work
fine.<br><br>
The reason I need to use 100% is that I'm resizing often the container
div.<br><br>
Is there a workaround ? I could find the answer in books
neither.<br><br>
Any help would be greatly appreciated.</blockquote><br>
I think that this might be relevant; I discovered it recently regarding
IE6:<br><br>
IE6 has 2 modes (I think I have these names right): Compliance mode and
Compatibility mode (aka &quot;quirks&quot; mode). In Compliance mode, IE6
is more or less (i.e. not very) compliant with the standards. In
Compatibility mode, it's more compatible with older versions of IE. Which
mode it is using depends on the HTML page it receives. If that page has a
DOCTYPE declaration before the opening &lt;html&gt; tag, it will run in
Compliance mode. We use this:<br><br>
<pre>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot;&gt;

</pre>just before the opening &lt;html&gt; tag in our web pages. There
are other variations, but they should declare the document to be an HTML
4.0 document.<br><br>
We've found some &quot;quirks&quot; in Compliance mode. For example, if
you have a table surrounded by &lt;center&gt; tags, the centering will
filter into the table, and content inside &lt;td&gt; tags will be
centered! The only way I know to get around that is to have a CSS
stylesheet with this in it:<br><br>
table td {<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>
text-align: left;<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>}<br><br>
That explicitly says that text inside a &lt;td&gt; that is part of a
table (of course, all &lt;td&gt; elements should be part of a table)
should have left aligned text. Also, in &quot;Compliance mode&quot;, if
you have something like this in a stylesheet:<br><br>
p {<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>font-size:
11;<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>}<br><br>
it will be ignored, though in &quot;Compatibility mode&quot;, the 11 will
be taken as meaning pixels. According to the standard, units should
always be present, unless the value is 0, which I assume you wouldn't use
for font-size.<br><br>
You might try experimenting with some simple static HTML pages, including
or excluding the DOCTYPE declaration.<br>
</body>
</html>