Re: ie6 and transitional dtd

> in IE6 I am having a problem. When a vertical scrollbar automatically
> appears, it is adding extra width to the page, therefore a horizontal
> scrollbar also appears, which you cannot get rid of on any vertical
> scrolling page.

This list is not really the place to discuss that (also the problem seems
to be a CSS one mainly rather than HTML).

>
> Also, for IE, when you set any scrollbar styles eg.
>
> scrollbar-face-color:#ccccff;
> scrollbar-highlight-color:#000099;
>
> they are not taking affect. I have spent ages looking for IE6 bugs on this
> problem, but I have just found out that if I take out the xhtml1.0 dtd
> declaration, it all works fine !

IE6 is more strictly compliant with the recommendations. Supplying a
doctype puts it into strict mode, which will ignore those non-css
properties.

> Is there any way of fixing this without taking the dtd out ? I have found
a
> hack for the horizontal scrollbar (on IE6, putting in scroll="yes" into
> body - not very elegant), but I'm presuming it should be fizable in the
css.

overflow: auto; on the <body> may help, but the actual scroll 'bug' should
be taken up with Microsoft.

--
David Emmerson

Received on Tuesday, 18 September 2001 14:41:30 UTC