I have a block of text that is repeated on several subpages of my web. As I rewrite it from time to time and dont use db, I decided to define it in my css file by pseudoelements (before, after).
Problem is - this text should be in 2 paragraphs and I dont know how to include linebreak in the Content property in css. Found some answers, but no matter what I use (\a, \A, \n) nothing works. Cant use "white-space:pre" as I dont know where those linebreaks will be - all I want to do is to add one more linebreak into Contect.
For better understanding, this is what I want to achieve
And this is how mI wanted to do it In css:
.gettomestia:before { content:"How to get to Mestia: "; font-weight:bold; }
.gettomestia:after { content:"longer text in 2 paragraphs"; display:inline-block; }
And in aspx file just add span with class = "gettomestia"
I know, its sloppy, but I know no better way. Does anybody know how to enter that linebreak into Content of "after" pseudoelement? Thank you.