c5522-brdr-002.xht (1294B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: border</title> 5 6 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 7 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 8 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-07-01 --> 9 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#border"/> 10 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-properties" title="8.5 Border properties"/> 11 12 <style type="text/css"><![CDATA[ 13 body { color: blue; } 14 td {border: 2px solid blue;} 15 table { border-collapse: separate; border-spacing: 6px; } 16 ]]></style> 17 </head> 18 <body> 19 <table> 20 <tr> 21 <td colspan="2"> 22 There should be a blue border around this sentence. 23 </td> 24 </tr> 25 <tr> 26 <td> 27 There should be a blue border around this sentence. 28 </td> 29 <td> 30 <table> 31 <tr> 32 <td> 33 There should be <strong><em>two</em> blue borders</strong> around this sentence. 34 </td> 35 </tr> 36 </table> 37 </td> 38 </tr> 39 </table> 40 </body> 41 </html>