015-font-shorthand.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>015 font shorthand</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. .text { width: 360px; background: #eeeeee; padding: 8px; }
  15. .after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
  16. </style>
  17. </head>
  18. <body>
  19. <h1>015 &middot; font shorthand</h1>
  20. <p>The same sentence must use the same typeface, size and line spacing in both panes.</p>
  21. <div class="pane">
  22. <div class="label">A: font shorthand</div>
  23. <div class="stage">
  24. <div class="text" style="font: bold 18px/1.5 sans-serif">
  25. The quick brown fox jumps over the lazy dog. Pack my box with five dozen
  26. liquor jugs. How vexingly quick daft zebras jump!
  27. </div>
  28. <div class="after">after</div>
  29. </div>
  30. </div>
  31. <div class="pane">
  32. <div class="label">B: longhand reference</div>
  33. <div class="stage">
  34. <div class="text" style="font-size: 18px; font-weight: bold; line-height: 150%; font-family: sans-serif">
  35. The quick brown fox jumps over the lazy dog. Pack my box with five dozen
  36. liquor jugs. How vexingly quick daft zebras jump!
  37. </div>
  38. <div class="after">after</div>
  39. </div>
  40. </div>
  41. </body>
  42. </html>