white-space-pre-element-001-ref.xht (967B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test reference</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net" /> 7 <style type="text/css"> 8 pre, div 9 { 10 font-family: monospace; 11 font-size: 10pt; 12 margin: 0; 13 } 14 div 15 { 16 white-space: pre; 17 } 18 </style> 19 </head> 20 <body> 21 <p>Test passes if the next two lines have the exact same spacing.</p> 22 <div> The spacing on these two sentences need to be the same! </div> 23 <div> The spacing on these two sentences need to be the same! </div> 24 </body> 25 </html>