css_outline.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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: 15px;
  8. margin: 2em auto;
  9. }
  10. td {
  11. outline-width: 5px;
  12. border: thin dotted gray;
  13. padding: 1em;
  14. }
  15. td.dotted { outline-style: dotted; color: maroon;}
  16. td.dashed { outline-style: dashed; color: orange; }
  17. td.solid { outline-style: solid; color: yellow; }
  18. td.double { outline-style: double; color: olive; }
  19. td.groove { outline-style: groove; color: green; }
  20. td.ridge { outline-style: ridge; color: lime; }
  21. td.inset { outline-style: inset; color: teal; }
  22. td.outset { outline-style: outset; color: blue; }
  23. div { margin: 5pt; }
  24. div.full { outline:thin blue solid;}
  25. div.partialthinsolid,
  26. div.partial1,
  27. div.partial2 { outline:thin solid;}
  28. div.partial1 { outline-color:green; }
  29. div.partial2 { outline:blue;}
  30. div.partial3 { outline-style:dashed; }
  31. div.partial4 { outline-width:thick; }
  32. div.partial5 { outline-width:medium; }
  33. div.partial6 { outline-width:3pt; }
  34. </style>
  35. </head>
  36. <body>
  37. <table>
  38. <tr>
  39. <th colspan="4">The dotted gray line is the border box</th>
  40. </tr>
  41. <tr>
  42. <td class="dotted">dotted</td>
  43. <td class="dashed">dashed</td>
  44. <td class="solid">solid</td>
  45. <td class="double">double</td>
  46. </tr>
  47. <tr>
  48. <td class="groove">groove</td>
  49. <td class="ridge">ridge</td>
  50. <td class="inset">inset</td>
  51. <td class="outset">outset</td>
  52. </tr>
  53. </table>
  54. <h2>partial attributes merged</h2>
  55. <div style="outline:thin solid red;">outline:thin solid red;</div>
  56. <div style="outline:red thin solid;">outline:red thin solid;</div>
  57. <div class="partialthinsolid partial2">{ outline:thin solid; }{outline:blue; } (merged, reset all - color has no effect)</div>
  58. <div class="partialthinsolid partial1">{ outline:thin solid; }{outline-color:green; } (merged, overwrite only color)</div>
  59. <div class="partial2">{ outline:thin solid; }{outline:blue; } (merged, reset all - color has no effect)</div>
  60. <div class="partial1">{ outline:thin solid; }{outline-color:green; } (merged, overwrite only color)</div>
  61. <div class="full partial1">{ outline:thin blue solid; }{outline-color:green; } (merged, overwrite only color)</div>
  62. <div class="full partial3">{ outline:thin blue solid; }{outline-style:dashed; } (merged, overwrite only style)</div>
  63. <div class="full partial4">{ outline:thin blue solid; }{outline-width:thick; } (merged, overwrite only width)</div>
  64. <div class="full partial5">{ outline:thin blue solid; }{outline-width:medium; } (merged, overwrite only width)</div>
  65. <div class="full partial6">{ outline:thin blue solid; }{outline-width:3pt; } (merged, overwrite only width)</div>
  66. </body> </html>