A <p> at the beginning of an absolutely positioned <div> causes an extra blank line before the text. In the following example, "text 1" will appear one line below "text 2". Both NN4 and IE5.5 show both pieces of text on the same line. <DIV style="position:absolute; left:2px; top:20px; width:60px"> <p>"text 1"</p> </DIV> <DIV style="position:absolute; left:70px; top:20px; width:60px"> "text 2" </DIV> Tested with Mozilla trunk 2002-01-10-03 on Win2000.
Status: UNCONFIRMED → NEW
Ever confirmed: true
If you change <p> to <p style="margin:0"> then the "extra line" disappears. IMO, the current layout is correct.
Severity: normal → minor
Bull. My testcase has a doctype that should trigger quirks mode so the page should render as it does for NN4, IE5, IE6, and Opera. Even in strict mode, it should render the same way. This attitude on the part of Mozilla that the whole world has to kowtow to its every whim is getting tiresome.
Severity: minor → normal
P has a default top and bottom margin of 1em in Mozilla. See bug 60535 comment 8. *** This bug has been marked as a duplicate of 60535 ***
Status: NEW → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.