backgr_simple-table.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  4. <title>Background on 'table'</title>
  5. <link rel="next" href="backgr_simple-table-row-group.html" title="Background Area: Background on 'table-row-group'">
  6. <link rel="prev contents" href="./backgr_index.html" title="Table of Contents">
  7. <link rel="stylesheet" type="text/css" href="common.css">
  8. <style type="text/css">
  9. table {background: black url(rainbowh.gif) top right}
  10. </style>
  11. </head>
  12. <body>
  13. <h1>CSS2 Table Backgrounds Test Suite</h1>
  14. <h2>Part A: Background Area</h2>
  15. <h3>Background on 'table'</h3>
  16. <p class="clip">The table background should fill the rectangle
  17. defined by the outer border of the table. There should be no gaps
  18. or holes in the background and the stripes should all be
  19. continuous.</p>
  20. <p class="position">A purple band should align with the left edge
  21. of the painted area, and an aqua stripe should align a few pixels
  22. below the top border.</p>
  23. <dl>
  24. <dt>next
  25. <dd><a href="backgr_simple-table-row-group.html">Background Area: Background on 'table-row-group'</a>
  26. <dt>previous
  27. <dd>--
  28. <dt>contents
  29. <dd><a href="./backgr_index.html">Table of Contents</a>
  30. </dl>
  31. <table class="separate">
  32. <caption>With 'border-collapse: separate'</caption>
  33. <colgroup class="colgroup-A">
  34. <col class="col-1">
  35. <col class="col-2">
  36. <col class="col-3">
  37. </colgroup>
  38. <colgroup class="colgroup-B">
  39. <col class="col-4">
  40. </colgroup>
  41. <thead>
  42. <tr class="th-row-1">
  43. <th class="a">TH A</th>
  44. <th class="b">TH B</th>
  45. <th class="c">TH C</th>
  46. <th class="d">TH D</th>
  47. </tr>
  48. </thead>
  49. <tfoot>
  50. <tr class="tf-row-1">
  51. <td class="m" colspan=2>TD M</td>
  52. <td class="o">TD O</td>
  53. <td class="p">TD P</td>
  54. </tfoot>
  55. <tbody>
  56. <tr class="tb-row-1">
  57. <td class="e" rowspan=2>TD E</td>
  58. <td class="f">TD F</td>
  59. <td class="g">TD G</td>
  60. <td class="h">TD H</td>
  61. </tr>
  62. <tr class="tb-row-2">
  63. <td class="j">TD J</td>
  64. <td class="k">TD K</td>
  65. <td class="l">TD L</td>
  66. </tr>
  67. </tbody>
  68. </table>
  69. <table class="collapse">
  70. <caption>With 'border-collapse: collapse'</caption>
  71. <colgroup class="colgroup-A">
  72. <col class="col-1">
  73. <col class="col-2">
  74. <col class="col-3">
  75. </colgroup>
  76. <colgroup class="colgroup-B">
  77. <col class="col-4">
  78. </colgroup>
  79. <thead>
  80. <tr class="th-row-1">
  81. <th class="a">TH A</th>
  82. <th class="b">TH B</th>
  83. <th class="c">TH C</th>
  84. <th class="d">TH D</th>
  85. </tr>
  86. </thead>
  87. <tfoot>
  88. <tr class="tf-row-1">
  89. <td class="m" colspan=2>TD M</td>
  90. <td class="o">TD O</td>
  91. <td class="p">TD P</td>
  92. </tfoot>
  93. <tbody>
  94. <tr class="tb-row-1">
  95. <td class="e" rowspan=2>TD E</td>
  96. <td class="f">TD F</td>
  97. <td class="g">TD G</td>
  98. <td class="h">TD H</td>
  99. </tr>
  100. <tr class="tb-row-2">
  101. <td class="j">TD J</td>
  102. <td class="k">TD K</td>
  103. <td class="l">TD L</td>
  104. </tr>
  105. </tbody>
  106. </table>
  107. <div class="validity">
  108. <a href="http://validator.w3.org/check/referer"><img
  109. src="valid-html401.png" height="31" width="88"
  110. alt="Valid HTML 4.01!"></a>
  111. </div>
  112. <address>
  113. CSS2 Table Backgrounds Test Suite designed and written by fantasai &lt;fantasai&#64;escape.com&gt;
  114. </address>
  115. </body>
  116. </html>