Sent by John Lewis on 3 March 2003 19:07
Charles wrote on Monday, March 3, 2003 at 12:36:21 AM:
> I have paragraphs that I want to sit one on top of the other, with
> no spacing beyond the line spacing.
> Still, when I set both the margin and the padding to 0, there's
> still space between them.
In what browser(s)?
Are you sure it's the paragraph's margin? If you have something like
<p></p>
<p style="margin:0"></p>
<p></p>
then the middle paragraph will still be surrounded by the other
paragraphs' margins. If it did have a margin equal to the other
paragraphs, the rendering would likely be identical because the top
and bottom margins would normally collapse. In the case above,
assuming a top and bottom margin of 1em, you'd need a -1em margin on
the middle paragraph to create the illusion of no margin separating it
from the other paragraphs.
<p></p>
<p style="margin:-1em 0"></p>
<p></p>
This works fine in Opera.
--
John