Usage of white-space property in CSS

JavascriptWeb DevelopmentFront End Scripts

The white-space property is used to control the flow and formatting of text.


You can try to run the following code to implement white-space property:

      <p style = "white-space:pre;">
         This text has a line break and the white-space pre setting tells the browser to honor
         it just like the HTML pre tag.</p>
Updated on 31-Jan-2020 06:22:55