[thelist] is the box model hack unnecessary in ie6?

Chris W. Parker cparker at swatgear.com
Fri Nov 15 13:37:01 CST 2002


hi.

i am just starting to get into using css for layout and am a bit
confused about the box model hack. i'm doing an intranet thing and we're
all standard on ie6 sp1.

(a quick aside: i think i read in an article recently that ppk [correct
me if i'm wrong] commented on how illogical the current implementation
of the box model is? i.e. the total width of an element should be
determined by width: and not the addition of the rest of the attributes
[padding, border, etc.] well i agree.)

anyways... am i correct in assuming that the box model hack as
illustrated at http://www.tantek.com/CSS/Examples/boxmodelhack.html does
not apply to IE6 because the top box is as wide as the blue bar?

i mean, if i was using ie5 the top box would be as large as the red bar
and NOT as wide as the blue bar correct? using the hack would correct
this mistake in ie's implementation thus making the second box as big as
the blue bar?

ideas?

thanks,
chris.





More information about the thelist mailing list