Michael Raidel wrote:

> Hello,
> 
> maybe one of you knows the reason for this behaviour of Mozilla (0.9.6 
> and 0.9.7 on Linux and Windows). I want to have two images 5px from the 
> left side and with no gap between them vertically. The following code 
> works in IE, Opera, Konqueror and in the "Quirks"-Mode (without 
> DTD-Definition) in Mozilla. As soon as I use the HTML 4-Strict or 
> -Transitional Definition at the top of the document, there's a gap 
> between the pictures. This also happens when I use div or span instead 
> of p.
> 
> <p style="margin-left:5px;margin-bottom:0px"><img src="picture1.gif" 
> alt="Picture 1"></p>
> <p style="margin-left:5px;margin-bottom:0px;margin-top:0px"><img 
> src="Picture 2" alt="Picture 2"></p>
> 
> Does somebody have an idea, if this is a Mozilla-Bug or a bug in my own 
> code? In the first case I would write a bug-report in bugzilla.mozilla.org.
> 
> Thanks a lot,
> 
> Michael
> 

Did you check if there is not a blank character after closing > of <img> 
tag and the closing tag </p>? Because <img> tag is an empty tag there 
must not be any text after it!

Best regards


Reply via email to