Published on: 30 March, 2015

Replace new line using CSS3

Tumblr Digg Google Plus

Rather than replacing a new line using programming code, you can easily replace the new line by using a single css3 code. Below example is using a css class, so you can apply it easily to a html tag.

.newline{
	white-space:pre-line;
} 

Comments

There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.