RE: FN-FORUM: CSS problem
date posted 25th June 2003 16:31
Andy Macnaughton-Jones:
> 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.
Not margin, IIRC.
> 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.
Again, I don't think margin is included.
A div specified as would be 130px wide in the W3C model (with 100px of content-area),
but only 100px wide (with 70px of content-area) in the IE box model.
- Nick Grimshaw
{ if you're not part of the solution, you're part of the precipitate. }