border-spacing-084.xht (1599B)
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: Border-spacing using 'ex' units with a nominal value with a plus sign, +7.5ex</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#propdef-border-spacing" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#separated-borders" /> 8 <meta name="flags" content="ahem" /> 9 <meta name="assert" content="Border-spacing can be set to a nominal length (with plus sign) in 'ex' units." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 div, table 13 { 14 font: 20px Ahem; 15 } 16 div 17 { 18 background: black; 19 height: 1em; 20 left: 15ex; 21 position: relative; 22 top: 7.5ex; 23 width: 7.5ex; 24 } 25 table 26 { 27 border-spacing: +7.5ex; 28 } 29 td 30 { 31 padding: 0; 32 } 33 </style> 34 </head> 35 <body> 36 <p>Test passes if the middle bar is as wide as the space between the first and last bars.</p> 37 <div></div> 38 <table> 39 <tr> 40 <td>XXXXXX</td> 41 <td>XXXXXX</td> 42 </tr> 43 </table> 44 </body> 45 </html>