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?
> 
> Cheers,
> Shawn
> 

This is an IE bug, and one of the most annoying. But IE6 will correctly 
render the box to the standards, as Mozilla does, if you use a proper 
doctype. More info on that here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnie60/html/cssenhancements.asp#cssenhancements_topic3

Alex


Reply via email to