1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Position set to 'absolute'</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-position">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#choose-position">
8 <meta name="flags" content="">
9 <meta name="assert" content="The 'position' property applies the value 'absolute' and places the element out of flow of the document.">
10 <style type="text/css">
11 #wrapper
12 {
13 background: red;
14 border: 3px solid orange;
15 }
16 #div1
17 {
18 background: blue;
19 left: 1in;
20 position: absolute;
21 top: 1in;
22 }
23 </style>
24 </head>
25 <body>
26 <p>Test passes if there is no red visible on the page, and the blue box shrinks to the size of the contents and is completely shifted below the orange line.</p>
27 <div id="wrapper">
28 <div id="div1">Filler Text</div>
29 </div>
30 </body>
31 </html>