1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: white-space nowrap: basic test</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/white-space/nowrap/001.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model">
8 <style type="text/css">
9 .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
10 .top { font: 20px/1 Ahem; }
11 .outer { width: 10em; background: red; }
12 .inner { width: 7em; color: lime; background: green; white-space: nowrap; }
13 </style>
14 </head>
15 <body>
16 <div class="control">Ahem_font_required_for_this_test.</div>
17 <p>There should be no red below, only a lime line with a green square in it.</p>
18 <div class="top">
19 <div class="outer">
20 <div class="inner">
21 xxx xxxxxx
22 </div>
23 </div>
24 </div>
25 </body>
26 </html>