016-borders.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>016 borders</title>
  6. <style>
  7. html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
  8. body { font-family: sans-serif; font-size: 13px; }
  9. h1 { font-size: 20px; margin: 10px 0 4px 10px; }
  10. p { margin: 0 0 10px 10px; }
  11. .pane { float: left; width: 440px; margin-left: 10px; }
  12. .label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
  13. .stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
  14. .bare { height: 72px; }
  15. .after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
  16. </style>
  17. </head>
  18. <body>
  19. <h1>016 &middot; per-side borders</h1>
  20. <p>Both boxes must be 212 x 72 px with red on top, green on the right, blue at the bottom and black on the left.</p>
  21. <div class="pane">
  22. <div class="label">A: border widths and colours</div>
  23. <div class="stage">
  24. <div class="bare">
  25. <div style="width: 200px; height: 60px; background: #dddddd; border-style: solid; border-width: 10px 4px 2px 8px; border-color: #ff0000 #00ff00 #0000ff #000000"></div>
  26. </div>
  27. <div class="after">after</div>
  28. </div>
  29. </div>
  30. <div class="pane">
  31. <div class="label">B: absolute reference strips</div>
  32. <div class="stage">
  33. <div class="bare" style="position: relative; height: 72px">
  34. <div style="position: absolute; left: 0; top: 0; width: 212px; height: 10px; background: #ff0000"></div>
  35. <div style="position: absolute; left: 0; top: 10px; width: 8px; height: 60px; background: #000000"></div>
  36. <div style="position: absolute; left: 208px; top: 10px; width: 4px; height: 60px; background: #00ff00"></div>
  37. <div style="position: absolute; left: 0; top: 70px; width: 212px; height: 2px; background: #0000ff"></div>
  38. <div style="position: absolute; left: 8px; top: 10px; width: 200px; height: 60px; background: #dddddd"></div>
  39. </div>
  40. <div class="after">after</div>
  41. </div>
  42. </div>
  43. </body>
  44. </html>