Is it possible to style and position a line break right after a text node inline?
For example:
br {
position:relative;
display: block;
border: 1px dotted green;
font-size: 8px;
line-height: 8px;
height: 8px;
background: yellow;
color: blue;
content: "A";
width: 5px;
}
<pre><div contenteditable="true">
some<BR />text with<BR />linebreaks.<BR />The intended result<BR />is to style the linbreak<BR />right after the sentence.<BR />
</div>
</pre>
The result from this code snippet almost achieves what I'm looking for, but it positions the visual representation of the line break on the next line.
The intended result is:
some"linebreak visual representation"
text with"linebreak visual representation"
linebreaks"linebreak visual representation"
The intended result"linebreak visual representation"
is to style the linebreak.."linebreak visual representation"
EDIT: A fiddle
` – andi Oct 27 '16 at 13:43
` is an XML-ism, and unspecified in HTML. Though allowed, it does nothing and browsers are instructed to ignore it. – Rob Nov 09 '16 at 18:00