Formatted text using white-space

<P class="useWhiteSpace"> first line second line t h i r d l i n e </P>

Formatted text using PRE with styles

<pre> first line
          second line
   t   h   i  r  d     l  i  n  e 
<pre>

PRE tag with the width defined

<pre class="prewidth">
first line
          second line
   t   h   i  r  d     l  i  n  e
   			This fourth line is   l   o   n  g  e  r  than the width definition, but the text doesn't wrap.
"width" for "pre" is DEPRECATED in HTML 4.

This is a P (para g r a p h) with .useWhiteSpace { w h i t e - s p a c e : p r e ; it appears to me that Internet Explorer 6 ignores the style "white-space: pre" for returns...

The short answer: just use the <pre> tag, which works perfectly well, and screw this stupid css stuff.

Last Updated: May 29 2007, by Lyberty