CSS21-t100801-vertical-align-ref.xhtml (853B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS 2.1 Test Suite: vertical-align (on an inline-block) (reference)</title> 5 <link rel="author" title="L. David Baron" href="https://dbaron.org/" /> 6 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" /> 8 <meta name="flags" content="" /> 9 <meta http-equiv="Content-Style-Type" content="text/css" /> 10 <style type="text/css"><![CDATA[ 11 12 body { width: 500px; height: 500px; margin: 0; position: relative; } 13 body > div { 14 position: absolute; 15 height: 50px; width: 40px; 16 top: 100px; left: 0; 17 background: green; 18 } 19 20 ]]></style> 21 </head> 22 <body> 23 24 <div></div> 25 26 </body> 27 </html>