Jump to content

IE CSS Border/margin


djp1988
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...