User Interface Designer Question: Download UI Designer PDF

Why div are of different size in IE?

Tweet Share WhatsApp

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 PDF Read All 29 UI Designer Questions
Previous QuestionNext Question
What is .rolloverfordnd?Do you know what are the media types CSS allows?