Line Breaks not working in Text area in front end

June 7th, 2020 Shabu James 1K Views 0 Uncategorised26 seconds

When we add space that is line break in text area it was not showing in the front end display. For display the line break in front end then we can achieve with CSS by adding the following styles to your class or id which you have added.

white-space: pre-line;

( Or )

white-space: pre-wrap;

About The Author

Shabu James

Leave Your Thoughts Here...

We are glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our comment policy.

Name *
Comment

We are glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our comment policy.