content-white-space-002-ref.html (466B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Reference</title> 4 <style> 5 div { 6 border: solid silver; 7 margin: 0.5em; 8 padding: 0.2em; 9 color: blue; 10 white-space: pre; 11 } 12 </style> 13 <body> 14 <p>Test passes if the contents of the two silver boxes are identical.</p> 15 <div>This text 16 should be on 17 four 18 lines.</div> 19 <div>This text 20 should be on 21 four 22 lines.</div> 23 </body>