border-collapse-opacity-table-row-group-ref.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html lang="en-US">
  4. <head>
  5. <title>Table background tests</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <meta http-equiv="Content-Style-Type" content="text/css">
  8. <style type="text/css">
  9. html, body { margin: 0; padding: 0; border: 0; font-size: 16px; }
  10. body { padding: 15px; }
  11. .o { opacity: 0.5; }
  12. /*
  13. table {
  14. margin: 0px 3px 2px 4px;
  15. border-width: 4px 2px 8px 6px;
  16. height is 97px:
  17. (2px of border outside height)
  18. extra border width for top row: 0
  19. cell * 5: == 19px * 5 == 95px
  20. border-top: 2px;
  21. padding-top: 1px;
  22. height: 10px;
  23. padding-bottom: 4px;
  24. border-bottom: 2px;
  25. extra border width for top row: 2px
  26. (4px of border outside height)
  27. width is 287px:
  28. (3px of border outside width)
  29. extra border width for left column: 2px
  30. cell * 5: == 57px * 5 == 285px
  31. border-left: 1px;
  32. padding-left: 3px;
  33. width: 50px;
  34. padding-right: 2px;
  35. border-right: 1px;
  36. (1px of border outside width)
  37. */
  38. div { width: 287px; height: 57px; margin: 21px 4px 48px 7px; }
  39. div.color { background-color: aqua; }
  40. div.imagetl, div.imagebr {
  41. background-image: url(repeatable-diagonal-gradient-with-ticks.png);
  42. }
  43. div.imagetl { background-position: 0 0; }
  44. div.imagebr { background-position: 287px 57px; }
  45. </style>
  46. </head>
  47. <body>
  48. <div class="color o"></div>
  49. <div class="imagetl o"></div>
  50. <div class="imagebr"></div>
  51. </body>
  52. </html>