|
|
 |
Re: FN-FORUM: CSS problem
date posted 25th June 2003 16:46
On 6/25/2003 4:22 PM, Andy Macnaughton-Jones wrote:
> Ok, so let me understand this right...
>
> IE (5.0, 5.5 - and I guess 6.0) think that a width of a DIV is specified
> solely by the width attribute and the content inside it ends up as being
> DIV less the width of border + padding + margin.
>
> For other browsers that implement the box model according to WC3, the
> width of a DIV is specified by the width attribute plus the width of
> border + padding + margin.
>
> ?
That's almost right! :-)
Browser's implementing the box model according to W3C have the width of
a div where the padding, borders and margins are not included in the its
width.
IE 5.x includes only the padding and border widths in the div width,
i.e. NOT the margin width.
I believe this is fixed in IE6, but IE6 is affected by the DOCTYPE
heading, since it may otherwise run in quirks mode. Best to check in
both IE5.x and IE6.
JohnO
--
John Olival
Explican Internet Solutions
+44 (0)870 432 4319
http://www.explican.com
----
|
 |
|