position_09_absolute_positioning_change_bars.rml 952 B

123456789101112131415161718192021222324252627
  1. <rml>
  2. <head>
  3. <title>CSS Position: Absolute positioning - Change bars</title>
  4. <link type="text/rcss" href="../style.rcss"/>
  5. <link rel="source" href="https://drafts.csswg.org/css-position-3/#comparison" />
  6. <link rel="help" href="https://drafts.csswg.org/css-position-3/#comparison" />
  7. <meta name="description" content='The two red hyphens, indicating a change, sit in the left margin of the page on the line containing the word "THIS", regardless of what line that ends up being.' />
  8. <style>
  9. body {
  10. font-size: 20dp;
  11. display: block;
  12. background: #ddd;
  13. color: #444;
  14. line-height: 200%;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <p style="position: relative; margin-right: 10dp; left: 10dp;">
  20. I used two red hyphens to serve as a change bar. They
  21. will "float" to the left of the line containing THIS
  22. <span style="position: absolute; top: auto; left: -1em; color: red;">--</span>
  23. word.
  24. </p>
  25. <handle size_target="#document"/>
  26. </body>
  27. </rml>