Michael Raidel wrote: > Hello Chris, > > > At a guess, this is because images are by default "inline" elements. > > You need to make them display: block in this case. > > unfortunately the display:block attribute has no effect on my problem. > Further on all works fine until I add the lines > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > > to the top of my document. So I have a workaround for my problem > (removing the lines) but then I don't have a valid HTML-Document anymore..
Really? The following code works just fine for me on Moz0.9.7 (no space between the images): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test</title> </head> <body> <p style="margin-left:5px;margin-bottom:0px;"><img src="http://www.mozilla.org/images/mozilla-banner.gif" alt="Picture 1" style="display:block;"></p> <p style="margin-left:5px;margin-bottom:0px;margin-top:0px"><img src="http://www.mozilla.org/images/mozilla-banner.gif" alt="Picture 2" style="display:block;"></p> </body> </html>
