I want to do a line break with CSS. I ́m using content.
td:before {
content: "Test\A Test2";
}
It ́s not working. How to do it correctly?
1 Answer 1
You must add white-space:pre;
Example
.linebreak:after{
content:"A" '\A' "B";
white-space: pre;
}
<div class="linebreak"></div>
answered Oct 23, 2015 at 11:44
Alexis
5,8211 gold badge30 silver badges46 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default