separated-border-model-003.xht (1313B)
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: HTML/XHTML table width equation</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#separated-borders" /> 7 <meta name="assert" content="The width of an HTML/XHTML table is the distance between the left and right table border edges." /> 8 <style type="text/css"> 9 table 10 { 11 border-spacing: 50px 0; 12 } 13 td 14 { 15 width: 100px; 16 } 17 div 18 { 19 background: blue; 20 height: 100px; 21 } 22 table, td 23 { 24 background: black; 25 border: 25px solid black; 26 padding: 25px; 27 } 28 div 29 { 30 width: 400px; 31 } 32 </style> 33 </head> 34 <body> 35 <p>Test passes if the boxes below are the same width.</p> 36 <table> 37 <tr> 38 <td>X</td> 39 </tr> 40 </table> 41 <div></div> 42 </body> 43 </html>