User Interface Designer Question:

Download Job Interview Questions and Answers PDF

Why div are of different size in IE?

UI Designer Interview Question
UI Designer Interview Question

Answer:

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.

Download UI Designer Interview Questions And Answers PDF

Previous QuestionNext Question
What is .rolloverfordnd?Do you know what are the media types CSS allows?