css_border.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
  5. <style>
  6. table {
  7. border-spacing: 5px;
  8. margin: 2em auto;
  9. }
  10. td {
  11. border-width: 5px;
  12. padding: 1em;
  13. }
  14. td.dotted { border-style: dotted; color: maroon;}
  15. td.dashed { border-style: dashed; color: orange; }
  16. td.solid { border-style: solid; color: yellow; }
  17. td.double { border-style: double; color: olive; }
  18. td.groove { border-style: groove; color: green; }
  19. td.ridge { border-style: ridge; color: lime; }
  20. td.inset { border-style: inset; color: teal; }
  21. td.outset { border-style: outset; color: blue; }
  22. div.full { border:thin blue solid; margin:2pt;}
  23. div.partialthinsolid,
  24. div.partial1,
  25. div.partial2 { border:thin solid; margin:2pt;}
  26. div.partial1 { border-color:green; }
  27. div.partial2 { border:blue;}
  28. div.partial3 { border-style:dashed; }
  29. div.partial4 { border-width:thick; }
  30. div.partial5 { border-width:medium; }
  31. div.partial6 { border-width:3pt; }
  32. div.partial1top,
  33. div.partial2top { border-top:thin solid; margin:2pt;}
  34. div.partial1top {border-top-color:green; }
  35. div.partial2top {border-top:blue;}
  36. .d { width: 1in; height: 1in; margin: 5pt; }
  37. .b1 {
  38. border: 1px solid red;
  39. }
  40. .b2 {
  41. border: solid thick blue;
  42. }
  43. .b3 {
  44. border: #369 thin dashed;
  45. }
  46. .b4 {
  47. border: dotted green 2px;
  48. }
  49. .b5 {
  50. border: 0.1em #0033DD solid;
  51. }
  52. .b6 {
  53. border: orange inset 4pt;
  54. }
  55. hr {
  56. page-break-after: always;
  57. visibility: hidden;
  58. }
  59. </style>
  60. </head>
  61. <body>
  62. <table>
  63. <tr>
  64. <td class="dotted">dotted</td>
  65. <td class="dashed">dashed</td>
  66. <td class="solid">solid</td>
  67. <td class="double">double</td>
  68. </tr>
  69. <tr>
  70. <td class="groove">groove</td>
  71. <td class="ridge">ridge</td>
  72. <td class="inset">inset</td>
  73. <td class="outset">outset</td>
  74. </tr>
  75. </table>
  76. <h2>partial attributes merged</h2>
  77. <div style="border:thin solid red;">border:thin solid red;</div>
  78. <div style="border:red thin solid;">border:red thin solid;</div>
  79. <div class="partialthinsolid partial2">{ border:thin solid; }{border:blue; } (merged, reset all - color has no effect)</div>
  80. <div class="partialthinsolid partial1">{ border:thin solid; }{border-color:green; } (merged, overwrite only color)</div>
  81. <div class="partial2">{ border:thin solid; }{border:blue; } (merged, reset all - color has no effect)</div>
  82. <div class="partial1">{ border:thin solid; }{border-color:green; } (merged, overwrite only color)</div>
  83. <div class="full partial1">{ border:thin blue solid; }{border-color:green; } (merged, overwrite only color)</div>
  84. <div class="full partial3">{ border:thin blue solid; }{border-style:dashed; } (merged, overwrite only style)</div>
  85. <div class="full partial4">{ border:thin blue solid; }{border-width:thick; } (merged, overwrite only width)</div>
  86. <div class="full partial5">{ border:thin blue solid; }{border-width:medium; } (merged, overwrite only width)</div>
  87. <div class="full partial6">{ border:thin blue solid; }{border-width:3pt; } (merged, overwrite only width)</div>
  88. <h2>top:</h2>
  89. <div style="border-top:thin solid red;">border-top:thin solid red;</div>
  90. <div style="border-top:red thin solid;">border-top:red thin solid;</div>
  91. <div class="partial1top">{ border-top:thin solid; }{border-top-color:green; } (merged, overwrite only color)</div>
  92. <div class="partial2top">{ border-top:thin solid; }{border-top:blue; } (merged, reset all - color has no effect)</div>
  93. <h2>right left bottom:</h2>
  94. <div style="border-right:thin solid red;">border-right:thin solid red;</div>
  95. <div style="border-left:thin solid red;">border-left:thin solid red;</div>
  96. <div style="border-bottom:thin solid red;">border-bottom:thin solid red;</div>
  97. <h2>Individual Attributes</h2>
  98. <div class="full" style="border-top-color:red;">{border:thin blue solid;}{border-top-color:red;}</div>
  99. <div class="full" style="border-right-color:red;">{border:thin blue solid;}{border-right-color:red;}</div>
  100. <div class="full" style="border-bottom-color:red;">{border:thin blue solid;}{border-bottom-color:red;}</div>
  101. <div class="full" style="border-left-color:red;">{border:thin blue solid;}{border-left-color:red;}</div>
  102. <div class="full" style="border-top-style:dashed;">{border:thin blue solid;}{border-top-style:dashed;}</div>
  103. <div class="full" style="border-right-style:dashed;">{border:thin blue solid;}{border-right-style:dashed;}</div>
  104. <div class="full" style="border-bottom-style:dashed;">{border:thin blue solid;}{border-bottom-style:dashed;}</div>
  105. <div class="full" style="border-left-style:dashed;">{border:thin blue solid;}{border-left-style:dashed;}</div>
  106. <div class="full" style="border-top-width:medium;">{border:thin blue solid;}{border-top-width:medium;}</div>
  107. <div class="full" style="border-right-width:medium;">{border:thin blue solid;}{border-right-width:medium;}</div>
  108. <div class="full" style="border-bottom-width:medium;">{border:thin blue solid;}{border-bottom-width:medium;}</div>
  109. <div class="full" style="border-left-width:medium;">{border:thin blue solid;}{border-left-width:medium;}</div>
  110. <h2>Individual side specific Attributes</h2>
  111. <div class="full" style="border-color:red;">{border:thin blue solid;}{border-color:red;}</div>
  112. <div class="full" style="border-color:red green;">{border:thin blue solid;}{border-color:red green;}</div>
  113. <div class="full" style="border-color:red green blue;">{border:thin blue solid;}{border-color:red green blue;}</div>
  114. <div class="full" style="border-color:red green blue gray;">{border:thin blue solid;}{border-color:red green blue gray;}</div>
  115. <div class="full" style="border-style:dashed;">{border:thin blue solid;}{border-style:dashed;}</div>
  116. <div class="full" style="border-style:dashed dotted;">{border:thin blue solid;}{border-style:dashed dotted;}</div>
  117. <div class="full" style="border-style:dashed dotted double;">{border:thin blue solid;}{border-style:dashed dotted double;}</div>
  118. <div class="full" style="border-style:dashed dotted double groove;">{border:thin blue solid;}{border-style:dashed dotted double groove;}</div>
  119. <div class="full" style="border-width:1pt;">{border:thin blue solid;}{border-width:1pt;}</div>
  120. <div class="full" style="border-width:1pt 2pt;">{border:thin blue solid;}{border-width:1pt 2pt;}</div>
  121. <div class="full" style="border-width:1pt 2pt 3pt;">{border:thin blue solid;}{border-width:1pt 2pt 3pt;}</div>
  122. <div class="full" style="border-width:1pt 2pt 3pt 4pt;">{border:thin blue solid;}{border-width:1pt 2pt 3pt 4pt;}</div>
  123. <hr />
  124. <h2>Misc. values</h2>
  125. <div class="d b1"> </div>
  126. <div class="d b2"> </div>
  127. <div class="d b3"> </div>
  128. <div class="d b4"> </div>
  129. <div class="d b5"> </div>
  130. <div class="d b6"> </div>
  131. </body> </html>