Answers

Question and Answer:

  Home  UI Designer

⟩ Why div are of different size in IE?

The specification which is been given for the size of div in IE is as follows:

Width of a box (i.e. a containing area) in CSS = width + border +padding (+margin).

Total box width is: 300px with a padding of 10px and a border of 5px. This requires the total area of 330px. IE5 uses different rules and out of width it subtracts the padding and border from the specific width so the total width becomes 270px. So, instead of 330px, IE uses 270px that is why the div are of different sizes.

 148 views

More Questions for you: