Internet Explorer All Versions Bug with CSS  
Author Message
LeoLeal





PostPosted: Internet Explorer Web Development, Internet Explorer All Versions Bug with CSS Top

There's something that NEEDS to be fixed in Internet Explorer 7 before It comes to the Public.

For years already Microsoft release Browsers where in It's CSS Component, Padding includes the Width of the Content... which according to W3C It's not true. Padding is an External space between actual content and It's border, instead of a space INTO the content box. Padding should not be counted in the Width of a box, but according IE CSS Support It does... which gives a lot of headache to develop W3C Safe WebPages... with 100% Similar Layouts.




Internet Explorer Development8  
 
 
Dave Massy





PostPosted: Internet Explorer Web Development, Internet Explorer All Versions Bug with CSS Top

Can you please supply the HTML to reproduce the issue. From the description it sound like you may not be using the strict doctype declaration http://msdn.microsoft.com/library/en-us/dnie60/html/cssenhancements.asp frame=true#cssenhancements_topic2 but it is difficult to be sure without exact details.

Thanks
-Dave



 
 
Lance Leonard





PostPosted: Internet Explorer Web Development, Internet Explorer All Versions Bug with CSS Top

Hi LeoLeal,

This is something that has changed in IE7. Width (and height) no longer include padding or border when the document is rendered in strict mode.

To have IE render your pages in strict mode, you need to add a strict !DOCTYPE directive to your web pages. If your page does not have a !DOCTYPE declaration, it will be rendered in quirks mode and the width will include the padding and border (as was done in older versions).

For more information, please see the following:

Hope this helps...

-- Lance