Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- David Graham
July 12, 2003, 7:47 am
rate this thread
Could you please confirm or refute the following:
IE6 - (correctly) adds the width of margin, border and padding to the
content width so the box width is bigger tan the content width.
IE5.5 (incorrectly) - includes the margin, border and padding in the content
width, so the content width and the box width are the same.
IE5.0 - same as IE5.5
Re: box model
Yes... IF placed in to Standards mode using DOCTYPE switching. Otherwise it
acts like 5.5
Err - just the border and padding I think.
David Dorward http://david.us-lot.org /
Redesign in progress: http://stone.thecoreworlds.net /
Microsoft announces IE is dead (so upgrade):
Re: box model
No. I would say you misword this.
MSIE 6 for Windows will NOT include padding in the content width if in
standards compliant rendering mode (which can be triggered if you use a
full doctype declaration, with a system ID - a full valid url).
MSIE 5.x and MSIE 6 for Windows in backward-compatible rendering mode
will include padding in the content width.
This image comes from MSDN and illustrate the issue very well:
Fix the box instead of thinking outside of it:
There are a lot of websites covering this issue, with given ways to
code, hack around this annoying major bug.
- » OnMouseOver Does Not work Properly With AREA SHAPE. Why Is That?
- — Previous thread in » HTML Markup Language