I am writing a HTML-editor using content-editable and I wanted to indicate line breaks (<br>
) with a special character ("↩") at the end of each line that ends with a <br>
. Therefore I wanted to add a pseudo-element ::after
with that character as content
.
br::after { content: ' ↩'; }
Unfortunately this doesn't work. ::before
doesn't work either.
Is there another possibility to achieve the desired result?
`. – pvorb Oct 21 '13 at 15:39