> Hi there,
>
[quoted text clipped - 15 lines]
>
> http://14mb.de/u/dkabs/testcase_ie_resize.html
Mercifully, I don't have IE on my computer. I was however curious
about a few things:
(a) Why use a transitional document type - wouldn't you be better off
using strict? (See the Margin: auto thread)
(b) Does this really do what you claim it does?
<!--[if lte IE 6]><style>
#Content {
width:100%; /* prevents wide content from stretching div horizontally
}
</style><![endif]-->
I also notice that you are not explicitly setting margin, padding, and
border on the body, so you will get whatever IE's default is in that
browser
Daniel Kabs - 27 Feb 2008 09:17 GMT
>> http://14mb.de/u/dkabs/testcase_ie_resize.html
>
> (a) Why use a transitional document type - wouldn't you be better off
> using strict? (See the Margin: auto thread)
I used this document type to trigger "standards compliant" rendering
mode while at the same time allow for "relaxed" HTML.
> (b) Does this really do what you claim it does?
>
[quoted text clipped - 3 lines]
> }
> </style><![endif]-->
Thanks for pointing out! Even though I forgot to end the comment using
*/ it does what it claims to do. If you omit the above declaration, IE6
stretches the #Content div to make the button fit (instead of showing
scrollbars on the div).
> I also notice that you are not explicitly setting margin, padding, and
> border on the body, so you will get whatever IE's default is in that
> browser
I stripped the page of any CSS which is not related to the problem.
Cheers
Daniel