data-alignment-003.xht (1151B)
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: Aligning Table Data (row data is aligned)</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#tables-intro" /> 7 <meta name="assert" content="Cell data in a row can be horizontally and vertically aligned." /> 8 <style type="text/css"> 9 tr 10 { 11 vertical-align: middle; 12 text-align: center; 13 } 14 td 15 { 16 width: 10em; 17 height: 10em; 18 border: solid; 19 } 20 </style> 21 </head> 22 <body> 23 <p>Test passes if the "Filler Text" is horizontally and vertically centered in each of the boxes below.</p> 24 <table> 25 <tr> 26 <td>Filler Text</td> 27 <td>Filler Text</td> 28 <td>Filler Text</td> 29 </tr> 30 </table> 31 </body> 32 </html>