separated-border-model-001.xht (1364B)
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: Distance between the table border and a bordering 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#separated-borders" /> 7 <meta name="assert" content="The distance between table border and bordering cell equals table padding + cell's border spacing." /> 8 <style type="text/css"> 9 table 10 { 11 border-left: 10px solid black; 12 border-spacing: 50px 0; 13 padding-left: 50px; 14 } 15 td 16 { 17 background: black; 18 height: 1em; 19 padding: 0; 20 width: 10px; 21 } 22 div 23 { 24 background: blue; 25 height: 1em; 26 width: 120px; 27 } 28 </style> 29 </head> 30 <body> 31 <p>Test passes if the blue box spans from the start of the first black box to the end of the second black box.</p> 32 <table> 33 <tr> 34 <td></td> 35 </tr> 36 </table> 37 <div></div> 38 </body> 39 </html>