Sub titulo "Re: DIV borders different in IE7 when in td"
scripsit Ben C:
This seems to be the heart of the matter, and I'm trying to get a real
discussion started, by moving the discussion to the right group
(c.i.w.a.styles heets) and changing the Subject line.
It seems to me that IE 7, specifically in "standards mode" (!),
misbehaves when a table cell has a declared width but the actual width
is larger, due to the requirements of its content. When the <tdelement
contains a <divelement, IE 7 expands the <tdbut not the <divinside
it. This can be seen from the background or border of the <div>, if set,
and even the formatting of its textual content.
However, width calculation is mystic area in CSS, so it might be
possible that under some weird interpretation, IE 7 is "right", though I
cannot see how.
Demo: http://www.cs.tut.fi/~jkorpela/www/width-bug.html
--
Jukka K. Korpela ("Yucca")
scripsit Ben C:
Table cells should never go narrower than the minimum width required
by their contents. Normal flow block boxes (like default DIV) get the
width you set, overflowing if necessary.
by their contents. Normal flow block boxes (like default DIV) get the
width you set, overflowing if necessary.
discussion started, by moving the discussion to the right group
(c.i.w.a.styles heets) and changing the Subject line.
It seems to me that IE 7, specifically in "standards mode" (!),
misbehaves when a table cell has a declared width but the actual width
is larger, due to the requirements of its content. When the <tdelement
contains a <divelement, IE 7 expands the <tdbut not the <divinside
it. This can be seen from the background or border of the <div>, if set,
and even the formatting of its textual content.
However, width calculation is mystic area in CSS, so it might be
possible that under some weird interpretation, IE 7 is "right", though I
cannot see how.
Demo: http://www.cs.tut.fi/~jkorpela/www/width-bug.html
--
Jukka K. Korpela ("Yucca")
Comment