Closed Bug 1348 Opened 26 years ago Closed 25 years ago

Vertical alignment problems with floating images

Categories

(Core :: Layout, defect, P2)

x86
Other
defect

Tracking

()

VERIFIED DUPLICATE of bug 1345

People

(Reporter: peterl-retired, Assigned: buster)

Details

In the following markup, the image should be aligned with the first line of text
in the paragraph, but when text preceeds the image, it doesn't. Although the
text wraps as if it does...

Also, when you minimize a window displaying this markup, it crashes in
nsBlockFrame.

<body>
xxxx
<img src="x.gif" align=left width=50 height=50>
<P style="border: solid red; margin-left: 20px">here is some text here is some
text here is some text here is some text here is some text
here is some text here is some text here is some text here is some text here is
some text
here is some text here is some text here is some text
</P>
</body>
Setting all current Open/Normal to M4.
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Your analysis is not quite right. In particular, the P element has a top margin
which is applied vertically before placing its text. Consequently the top of
border of the P will be below the top of the image by the distance of P's
vertical margin.

However, after that, there is a bug that is a duplicate of #1345...


*** This bug has been marked as a duplicate of 1345 ***
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.