Shawn Neumann wrote:
>
> I've notice a difference between the way IE 6.0 anc Mozilla deal with
> CSS <div>s and I'm wondering which is correct in terms of the standard.
>
> If you set a <div> to have a width of 150px and then give it a right
> border of 5px this is what results:
>
> Mozilla: Created a 155px box (tacking the 5px border on the outside of
> the box)
> IE: Creates a 150px box (the 5px border remains inside of the box)
>
> This causes lots of issues trying to get cross browser design stability.
> Is this a bug in Mozilla's implementation of the CSS1 or CSS2 standards
> or an IE issue?
This is a bug in IE. See http://www.w3.org/TR/REC-CSS2/box.html
and http://www.w3.org/TR/REC-CSS2/visudet.html#the-width-property .
Clarence