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: Vertical-align set to 'middle' aligns content to the middle of the cell</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#height-layout">
7 <meta name="flags" content="">
8 <meta name="assert" content="A cell with Vertical-align set to 'middle' aligns cell content in the middle of the cell.">
9 <style type="text/css">
10 table
11 {
12 height: 100px;
13 }
14 td
15 {
16 border: 1px solid black;
17 vertical-align: middle;
18 }
19 #small
20 {
21 font-size: 10pt;
22 }
23 #medium
24 {
25 font-size: 20pt;
26 }
27 #large
28 {
29 font-size: 30pt;
30 }
31 </style>
32 </head>
33 <body>
34 <p>Test passes if the "Filler Text" below is vertically aligned to the middle of their boxes.</p>
35 <table>
36 <tr>
37 <td>
38 <div id="small">Filler Text</div>
39 </td>
40 <td>
41 <div id="medium">Filler Text</div>
42 </td>
43 <td>
44 <div id="large">Filler Text</div>
45 </td>
46 </tr>
47 </table>
48 </body>
49 </html>