float_text_wrap.rml 901 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <rml>
  2. <head>
  3. <title>Text wrapping around floats</title>
  4. <link type="text/rcss" href="../style.rcss"/>
  5. <link rel="help" href="https://drafts.csswg.org/css2/#floats" />
  6. <meta name="Description" content="Ensure the words wrap correctly around the float." />
  7. <style>
  8. section {
  9. display: block;
  10. min-height: 150px;
  11. }
  12. p {
  13. border: 2px #fff;
  14. /*white-space: nowrap;*/
  15. /*text-align: right;*/
  16. }
  17. .box {
  18. background-color: #f0f8ff;
  19. border: 5px #4682b4;
  20. font-size: 30dp;
  21. }
  22. .float {
  23. float: left;
  24. margin-right: 25px;
  25. width: 380px;
  26. height: 100px;
  27. background-color: #fffa;
  28. border: 1px black;
  29. padding: 10px;
  30. position: relative;
  31. }
  32. </style>
  33. </head>
  34. <body>
  35. <section>
  36. <div class="float">Try to resize this outer float<handle size_target="#parent"/></div>
  37. <div class="box"><p>AA B CCC</p></div>
  38. </section>
  39. <handle size_target="#document"/>
  40. </body>
  41. </rml>