| 1234567891011121314151617181920212223242526272829303132333435 |
- <rml>
- <head>
- <title>CSS Position: Absolute positioning</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='All of the text within #outer (the "outer" and "inner" text) moves down to an independent box in the lower right corner. The two halves of "body" text flow together.' />
- <style>
- body {
- font-size: 20dp;
- display: block;
- background: #ddd;
- color: #444;
- line-height: 200%;
- }
- #outer {
- position: absolute;
- top: 200dp; left: 200dp;
- width: 200dp;
- color: red;
- }
- #inner { 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>
|