[thelist] is the box model hack unnecessary in ie6?
Chris W. Parker
cparker at swatgear.com
Fri Nov 15 13:56:11 CST 2002
-----Original Message-----
> From: Scott Schrantz [mailto:scotts at rci-nv.com]
> Sent: Friday, November 15, 2002 11:51 AM
> To: 'thelist at lists.evolt.org'
> Subject: RE: [thelist] is the box model hack unnecessary in ie6?
>
[snip /]
> > 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?
>
> Right. Basically the hack is a way of sending IE5 a different
> value than
> IE6. Think of it almost as bug-based browser sniffing.
>
> div.content {
> width:400px;
> voice-family: "\"}\"";
> voice-family:inherit;
> width:300px;
> }
>
> IE5 chokes on all the voice-family stuff and only sees the
> 400px value. IE6
> sees both values, and since 300px comes later it uses it. The
> idea is that
> the number you give IE5 is the IE6 value + both paddings +
> both borders (300
> + 30 + 30 + 20 + 20 = 400). That makes the boxes the same size in both
> browsers.
aahhh... that's why there are two values! i didn't make the connection
to why they were different (i.e. this + that + this = the-correct-size)
thanks a lot. that really helps.
chris.
More information about the thelist
mailing list