Bug Tracker

Opened 15 years ago

Closed 14 years ago

#2611 closed bug (invalid)

incorrect height returned in IE 6

Reported by: scottgonzalez Owned by: brandon
Priority: major Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:

Description

See attached file.

Attachments (1)

height.html (661 bytes) - added by scottgonzalez 15 years ago.

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by scottgonzalez

Attachment: height.html added

comment:1 Changed 15 years ago by scott.gonzal

Owner: set to brandon

comment:2 Changed 15 years ago by scott.gonzal

This problem also occurs with this body:

<body>
<div id="foo"></div>
<div>content</div>
</body>

comment:3 Changed 15 years ago by flesler

Ok tried this for a while, couldn't find a consistent response. But I think divs are one of those elements that don't like to be empty like that. I think that if you use <div>&nbsp;</div> you'll get less trouble.

Still.. I'm not giving a solution.. so this remains opened.

comment:4 Changed 14 years ago by brandon

Resolution: invalid
Status: newclosed

This is a CSS/rendering issue in IE. For example, if you make the body font-size smaller the resulting height of the empty div will also be smaller. If you zero out the height, font-size, and line-height for the div you'd get the correct results.

Note: See TracTickets for help on using tickets.