abspos-006

Absolute Positioning: Tables with two offsets

WeasyPrint

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html lang="en">
 3 <head>
 4   <title>CSS Test: Absolute Positioning: Tables with two offsets</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/008.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#comp-abspos">
 9   <style type="text/css">
10    body { font: 900 10em Lucida Console, Courier New, Courier, monospace; }
11    .description { font: medium serif; margin: 1em 1em 15em; }
12    .test { position: absolute; bottom: 0; left: auto; right: 0; top: auto;
13            background: white; color: green; margin: 0; }
14    .control { position: absolute; bottom: 0; left: auto; right: 0; top: auto;
15               background: red; color: yellow; margin: 0; }
16   </style>
17  </head>
18  <body>
19   <p class="description">The word PASS should appear at the bottom right of this document.</p>
20   <p class="control">FAIL</p>
21   <table class="test"><tbody><tr><td>PASS</td></tr></tbody></table>
22  
23 
24 </body>
25 </html>