table-height-algorithm-011.xht (1312B)
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 'baseline' aligns the cell content baseline with baseline of the row</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 'baseline' aligns the cell's content baseline with the baseline of the row." /> 8 <style type="text/css"> 9 td 10 { 11 vertical-align: baseline; 12 } 13 #big 14 { 15 font-size: 30px; 16 } 17 #bigger 18 { 19 font-size: 60px; 20 } 21 #biggest 22 { 23 font-size: 90px; 24 } 25 </style> 26 </head> 27 <body> 28 <p>Test passes if the bottom of "Filler Text" below is aligned.</p> 29 <table> 30 <tr> 31 <td id="big">FillerText</td> 32 <td id="bigger">FillerText</td> 33 <td id="biggest">FillerText</td> 34 </tr> 35 </table> 36 </body> 37 </html>