Forum Moderators: open
Is there anyway to eliminate the line break that the <P> element creates?
I want a <H2> header with some standard <P> text on the next line but the damm <P> puts a clearance line above and below....
Kind regards
Example Header Example text using <br>
Example Header
Example text using <p>
h1 { margin-bottom: 0; }p { margin-top: 0; }
You'll see no space between them. I usually use a spacing of around 1em between my headings and paragraphs. Remember, margins collapse [w3.org].
thanks