abspos-006.xht (1273B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> 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 </body> 24 </html>