Following HTML is rendered by the CMS (I can't modify the HTML, but I can change the CSS).
.teaser p {
display: inline;
clear: both;
background-color: red;
margin-bottom: 20px;
}
<div class="teaser">
<p>This is paragraph one</p>
<p>This is paragraph two...</p>
</div>
I want to achieve that every line of the paragraph has the background color - not the whole paragraph as a box. Something like this:
The image above was used in the following post - they added SPANs in the P-tag which I can't do: CSS : Background-color on multi-line text?
Is there any posibility to add a break after each paragraph and add the margin-bottom by using pure CSS?