Forum Moderators: open
Syman
<Sorry, no personal URLs. See TOS [webmasterworld.com]>
[edited by: tedster at 4:17 pm (utc) on Oct. 6, 2004]
If the gaps you see are between the top and the bottom of images, you may well have Quirks Mode vs. Standards Mode issue. See [webmasterworld.com...] for full details. This is something you will want to know about, if you don't already
My first thought is that you are talking about the extra space that is created by top and bottom margins - there should be a simple line break both before and after any block level element, such as a <p>. I've only seen Safari get this one wrong, and even then, only in very special cases where both text-alignment and margins change from one <p> to the next.
But how a browser sets the margins for a <p> by default, and how any two neighboring margins are collapsed, that can be a bit chaotic cross browser.
IE breaks after a <p> tag as for instance <p> </p><img src="somepic.jpg">
In this instance you'd have picture, then break in IE.
In FF you'd have break, then picture.
If you do it like this
<br /><img src="somepic.jpg">
Or like this
<img src="somepic.jpg"><br />
you should get the same result in all browsers. As for general page margin, only Opera complains about
body {margin: 0px;}
At least, these are my findings.. :D