table-height-algorithm-015.xht (1580B)
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: Vertical-align set to 'bottom' aligns cell content to the bottom 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="assert" content="A cell with Vertical-align set to 'bottom' aligns the cell's content to the bottom of the cell." /> 8 <style type="text/css"> 9 table 10 { 11 height: 100px; 12 } 13 td 14 { 15 border: 1px solid black; 16 vertical-align: bottom; 17 } 18 #small 19 { 20 font-size: 10pt; 21 } 22 #medium 23 { 24 font-size: 20pt; 25 } 26 #large 27 { 28 font-size: 30pt; 29 } 30 </style> 31 </head> 32 <body> 33 <p>Test passes if the "Filler Text" below is vertically aligned to the bottom of their boxes.</p> 34 <table> 35 <tr> 36 <td> 37 <div id="small">Filler Text</div> 38 </td> 39 <td> 40 <div id="medium">Filler Text</div> 41 </td> 42 <td> 43 <div id="large">Filler Text</div> 44 </td> 45 </tr> 46 </table> 47 </body> 48 </html>