Ingo Chao wrote:
> Here's a little bug in IE6 that is annoying me for a while now.
>
> http://www.satzansatz.de/cssd/tmp/aposwrong.html
>
> There is a 1px gap below the red block that is absolutely positioned
> (bottom:0) inside its containing black block.
>
> (In case you cannot see the gap, change the text zoom.)


It could be a manifestation of the fact that in IE6 bottom and right are
sometimes wrong by 1px.
Once I did some tests [1], and it seems that the problem occurs only when
the height (in case of bottom, or the width in case of right) of the padding
box of containing block is an odd number.
And in your case such height depends on font-size, line-height, ...

Using an expression such as:
        bottom: expression((this.offsetParent.clientHeight % 2) ? '-1px' : 0);
in place of
        bottom: 0;
seems to solve the problem. Don't know if there are better solutions.

Bruno


[1] http://brunildo.org/test/ap_contbox1odd.html

--
Bruno Fassino http://www.brunildo.org/test

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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