Marco van Hylckama Vlieg wrote:
Question: Is it possible to make IE6 use the broken box model for a
PART of the document?
No, DOCTYPE switching applies to the whole document, not just parts of
the document.
The different box model may one day be able to be chosen using the
proposed 'box-sizing' property [1] in the CSS3 box model module.
Mozilla has some support for it as '-moz-box-sizing'. Although, as
noted in the CSS3 draft, 'box-sizing' may actually be dropped in favour
of a better solution.
This means I have an XHTML 1.0 Strict / Transitional document with a
<div> in it for which the inner content should be rendered with the
broken box model, only in IE 6, not Firefox.
Your going about trying to solve this the wrong way. Instead of trying
to solve the problem by making a browser use intentionally broken
behaviour (quirks mode) because it gives the intended result, try and
work out the cause of the different rendering and find an alternate
method or (as a last resort) use a hack. You may find that your problem
is one of the many well documented IE bugs for which many workarounds
are readily available.
As for quirks mode, you should basically try to forget it even exists as
an alternative and never, under any circumstances, attempt to develop a
page using it. Use of quirks mode is never a good solution to any problem.
[1] http://www.w3.org/TR/2002/WD-css3-box-20021024/#the-box-width
--
Lachlan Hunt
http://lachy.id.au/
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************