Issue
In a textarea, there are new lines using for example 
, but how can I do this to a div element without using htmll (plain text like \n) ?
Solution
You can use CSS to force HTML to recognize new lines as line breaks.
Just set the white-space property to pre:
div {
white-space: pre;
}
Answered By - AstroCB
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.