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: Blocks within inlines: Relative positioning</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/ib/008.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop">
8 <meta name="flags" content="">
9 <style type="text/css">
10 .inline { display: inline; }
11 .block { display: block; }
12 .control { background: red; height: 5em; width: 5em; }
13 .test { background: green; height: 5em; width: 5em; position: relative; top: -5em; }
14 </style>
15 </head>
16 <body>
17 <p>There should be no red below.</p>
18 <div class="control"></div>
19 <div>
20 <div class="inline">
21 <div class="block test"></div>
22 </div>
23 </div>
24 </body>
25 </html>