I have an editable page and content, that consists of blocks of text and
tags as separators bwetween paragraphs. I want to make distance between paragraphs larger and I found solution with
br {
display:block;
margin-top: 15px;
content: " "
}
but in this case multiple br tags in row are collapsed. Also i found solution with line-height, but in this case cursor on empty line looks weird. I can't use p tag, so are there any other solutions?
body {
display: flex;
}
.first {
margin-right: 30px;
}
.first br {
display: block;
margin-top: 15px;
content: " ";
}
.second br {
display: block;
margin-top: 15px;
line-height: 50px;
}
<body contenteditable="true">
<div class="first">
<h3>display:block solution</h1>
Lorem ipsum dolor sit amet
<br>
Lorem ipsum dolor sit amet
<br>
<br>
Lorem ipsum dolor sit amet
</div>
<div class="second">
<h3>line-height solution</h1>
Lorem ipsum dolor sit amet
<br>
Lorem ipsum dolor sit amet
<br>
<br>
Lorem ipsum dolor sit amet
</div>
</body>