Here is an example of the content:
<div class="entry">
<p>The fact that<br /><h2>lactose intolerance symptoms</h2>
<p> are mostly developmental and seen as more prevalent in specific population groups, has led researchers to the clue, that this condition is genetically pre-disposed. It occurs far more frequently in Asian people; people of African heritage, and Native American populations; than it does for example in people of North European descent.</p>
<p>In the case of secondary<br />
<h3>lactose intolerance symptoms</h3>
<p>, these may occur due to damage caused to the small intestine...</p>
</p></p>
WordPress content editor is adding the P and BR tags once the page is published (they just show as clean line breaks in the wordress content editor in HTML mode.
So there is apparently a replacement being done on the line breaks before the content is served and the P and BR tags are being inserted.
Anyway, What I’m trying to do is to convert the headings to “inline” elements so that they appear in the normal flow of the text.
I’m using this CSS in an attempt to do it. It almost works, but the H level elements all act as if they have line breaks in front of them…
I’m using the CSS below to attempt to
.entry h1,.entry h2,.entry h3,.entry h4,.entry h5,.entry h6 {font-size:100%;margin:0;padding:0 .5em 0 0;display:inline;}.entry h1 + p,.entry h2 + p,.entry h3 + p,.entry h4 + p,.entry h5 + p,.entry h6 + p {display:inline;}.entry p + p {display:block;}.relatedTitle{margin-bottom:0;}h4 { padding-bottom: 10px; }
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6{margin-right:-.5em;}