> I'm trying to nest an absolutely positioned DIV inside of a relatively
> positioned DIV and give that nested DIV a percentage height.
>
> This works fine in all browsers (including IE7 and 8) but IE6 refused
> to give the nested DIV the height I specify. I've tried giving it has
> layout to no avail.

This is a known issue. 
One way to fix this would be to use a CSS expression to get the computed
height of the parent, you could try this:

* html .myAbsolutelyPositionedElement {
behavior: expression(
        (this.runtimeStyle.behavior="none") && (this.runtimeStyle.height =
(this.parentNode.offsetHeight/2) + "px"));
}


Do *not* replace the "* html" hack with the "_property" hack here, because
IE7 would get that expression too.

--
Regards,
Thierry | www.tjkdesign.com


 


______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to