Guest User

Untitled

a guest
Sep 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. </head>
  8. <body>
  9. <div class="renderbox">
  10. <style scoped>
  11. h1 {
  12. font-size: 18pt;
  13. }
  14.  
  15. p {
  16. font-size: 12pt;
  17. }
  18.  
  19. table.one {
  20. border-collapse: collapse;
  21. }
  22.  
  23. table.two {
  24. border-collapse: separate;
  25. }
  26.  
  27. td.a {
  28. border-style: dotted;
  29. border-width: 3px;
  30. border-color: #000000;
  31. padding: 10px;
  32. }
  33.  
  34. td.b {
  35. border-style: solid;
  36. border-width: 3px;
  37. border-color: #333333;
  38. padding: 10px;
  39. }
  40.  
  41. table {
  42. margin-bottom: 20px;
  43. }
  44. </style>
  45. <table class="one">
  46. <tr>
  47.  
  48. <td class="a">cell a collapse</td>
  49.  
  50. <td class="b">cell b collapse</td>
  51.  
  52. </tr>
  53.  
  54. <tr>
  55.  
  56. <td class="b">cell b collapse</td>
  57.  
  58. <td class="a">cell a collapse</td>
  59.  
  60. </tr>
  61.  
  62. </table>
  63.  
  64.  
  65. <h2>border-collapse:separate</h2>
  66. <table class="two">
  67.  
  68. <tr>
  69.  
  70. <td class="a">cell a separate</td>
  71.  
  72. <td class="b">cell b separate</td>
  73.  
  74. </tr>
  75.  
  76. <tr>
  77.  
  78. <td class="b">cell b separate</td>
  79.  
  80. <td class="a">cell a separate</td>
  81.  
  82. </tr>
  83. </table>
  84. </div>
  85.  
  86.  
  87. </body>
  88. </html>
Add Comment
Please, Sign In to add comment