| 123456789101112131415161718192021222324252627282930 |
- <rml>
- <head>
- <title>CSS Position: Floating a box</title>
- <link type="text/rcss" href="../style.rcss"/>
- <link rel="source" href="https://drafts.csswg.org/css-position-3/#comparison" />
- <link rel="help" href="https://drafts.csswg.org/css-position-3/#comparison" />
- <meta name="description" content='The "inner" text lays out in an independent box on the right, causing the remaining "body" and "outer" text to flow around it.' />
- <style>
- body {
- font-size: 20dp;
- display: block;
- background: #ddd;
- color: #444;
- line-height: 200%;
- }
- #outer { color: red }
- #inner { float: right; width: 130dp; color: blue }
- </style>
- </head>
- <body>
- <p>
- Beginning of p contents.
- <span id="outer"> Start of outer contents.
- <span id="inner"> Inner contents.</span>
- End of outer contents.</span>
- End of p contents.
- </p>
- <handle size_target="#document"/>
- </body>
- </rml>
|