djp1988 Posted January 20, 2008 Share Posted January 20, 2008 What is the issue with IE and the size of margin/border in CSS? It would seem that IE add a few pixels as default, and so when I define only 5 pixel border for example to set up the page I am building, which is done down to the pixel in size, it turns out completely deformed in IE. Link to comment Share on other sites More sharing options...
kurt.santo Posted January 21, 2008 Share Posted January 21, 2008 What is the issue with IE and the size of margin/border in CSS? It would seem that IE add a few pixels as default, and so when I define only 5 pixel border for example to set up the page I am building, which is done down to the pixel in size, it turns out completely deformed in IE. Your problem is the box model, which is properly interpreted by all browsers but IE. It should be that padding and border is added to a container's width (not for tables - a table's width is measured on the outside boundary). IE wrongly subtracts padding and border from the width. Unfortunately, I do not have any good solution apart from a hack. Am sure someone else might have a better idea...Kurt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.