border-separate-table-ref.html 1.5 KB

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