I need to make <br> within a paragraph give the same vertical space as a </p>, but not affect <br>s that appear elsewhere in the document. (this is because some HTML editors insert </p><p> when you press Enter, and some insert <br>)
That is, have
end up with the same look as
The stylesheet inlcudes
I tried
I tried
Any thoughts?
[/code]
That is, have
<p>This is a paragraph.</p><p>And this is another.</p>
end up with the same look as
<p>This is a paragraph.<br>And this is another.</p>
The stylesheet inlcudes
p { padding-bottom: 0.5em}
to give a bit of space between paragraphs. I tried
br { display: block; padding-bottom: 0.5em}
which sort of worked, but had consequences to other <br>s elsewhere.I tried
p br { padding-bottom: 0.5em}
but that didn't seem to work at all.Any thoughts?
[/code]