[thelist] Out of the box
Geoff Sheridan
web2k2 at premonition.co.uk
Tue Sep 10 05:09:01 CDT 2002
>If you choose to go with the Microsoft box model (width applies to the
>borders of a box and everything inside it), you can easily switch Mozilla to
>this model.
This is all very interesting but when should this be done?
The answer, of course, is *never*.
Code to the W3C standard, and Explorer 6 will get it (if you code
valid html or xhtml). Then use hacks (or avoidance techniques) for
the *broken* box model in IE5.5 and under.
The simplest way to sort this out is to avoid setting width and
padding on the same div. Use a wrapper div. Otherwise use the Tantek
Celik voice-family hack, or the simplified box-model hack (google for
SBMH).
Do not attempt to switch other browsers to the broken model, one by
one. Since only IEwin 5.5 and under use the so-called 'Microsoft
model', fix them only and leave other peoples properly functioning
browsers alone.
</rant>
Geoff
More information about the thelist
mailing list