Jump to content

IE CSS Border/margin


djp1988

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...