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: Leading and half leading line heights</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading">
7 <meta name="flags" content="ahem">
8 <meta name="assert" content="Line-height can be different from the content area so space is above and below.">
9 <style type="text/css">
10 div
11 {
12 font: 1in/1em Ahem;
13 background: blue;
14 width: 2in;
15 }
16 span
17 {
18 color: orange;
19 line-height: 2in;
20 }
21 </style>
22 </head>
23 <body>
24 <p>Test passes if the orange box is vertically centered inside the blue box.</p>
25 <div>
26 <span>X</span>
27 </div>
28 </body>
29 </html>