On Sun, 07 Nov 2004 19:44:29 GMT, Phlip <ph*******@yahoo.com> wrote:
HTMListas:
(Apologies for I can't Google for this - too many common words.)
I have a <form> tag.
It thinks I want a <p> break before and after the form. I don't. (My
forms
are sneaky and inline.)
How do I avoid paragraph breaks around a <form> tag?
The break you see is not really a <p> break, though it is related.
Some block elements (the ones which aren't inline, or which don't occur in
the flow of the text but stand alone) have marging and/or padding which
make other elements have to be a distance away from them when rendered on
screen.
p and form are two such elements. So what you need is to use CSS to
eliminate the margin on the form. Possibly, a neighboring element will
also have a margin, though, so you might have to adjust it too.