Sent by Mark Howells on 14 February 2002 09:09
>>> First question: Does anyone know of a solution to the bug in IE6
>>> which causes IE6 to wrap an iframe's content under the scrollbar when
>>> the content is longer than the iframe? This causes the horizontal
>>> scrollbar to turn on
>>
>> I'm guessing that this may be related to a similar problem with IE6 where a
>> table set to 100% causes the horizontal scrollbar to kick in. Try making
>> sure that the content is less than 100% wide -- 99.9% is a possibility with
>> CSS -- and that:
>
> 99.9% doesn't work, but 90% did. Explicitly setting the width to 20px
> less than what the iframe width is set to also fixes the problem.
> however if I have a background color on a H1 inside the iframe, while
> it works well in IE6, other browsers leave a gap between the scroll
> bar and where the background color finishes.
> Which comes back to the other question that I asked: Can I set rules
> that will only be read by IE6 and ignored by IE5 5.5 NS6 and 5 Mac?
"Conditional commenting" seems to be the way to go, though mention of them
on this list over the past few days has been my first sight and so I don't
know what kind of cross-platform compatibility they have. There was an email
to the list about an hour ago that gave an example of Conditional
commenting:
<!--[if IE 5]>
@import "foo5.css";
<![endif]-->
... which might work. Either that, or something like
html>body>h1 {.......}
... which is only understood by the newest browsers.
Regards
Mark Howells
<http://www.mark.ac/css>