border-separate-opacity-table-ref.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 7px 3px;
  16. border-box height is 145px:
  17. border-top: 4px;
  18. padding-top: 3px
  19. border-spacing: 3px * 6 == 18px
  20. cell * 5: == 21px * 5 == 105px
  21. border-top: 2px;
  22. padding-top: 1px;
  23. height: 10px;
  24. padding-bottom: 4px;
  25. border-bottom: 4px;
  26. padding-bottom: 8px;
  27. border-bottom: 7px;
  28. border-box width is 325px:
  29. border-left: 3px;
  30. padding-left: 6px
  31. border-spacing: 2px * 6 == 12px
  32. cell * 5: == 59px * 5 == 295px
  33. border-left: 3px;
  34. padding-left: 3px;
  35. width: 50px;
  36. padding-right: 2px;
  37. border-right: 1px;
  38. padding-right: 7px;
  39. border-right: 2px;
  40. */
  41. div { width: 325px; height: 145px; margin: 0px 3px 2px 4px; }
  42. div.color { background-color: aqua; }
  43. div.imagetl, div.imagebr {
  44. background-image: url(repeatable-diagonal-gradient-with-ticks.png);
  45. }
  46. div.imagetl { background-position: 3px 4px; }
  47. div.imagebr { background-position: 323px 138px; }
  48. </style>
  49. </head>
  50. <body>
  51. <div class="color"></div>
  52. <div class="imagetl o"></div>
  53. <div class="imagebr o"></div>
  54. </body>
  55. </html>