CSS21-t100801-vertical-align-ref.xhtml 853 B

12345678910111213141516171819202122232425262728
  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. body { width: 500px; height: 500px; margin: 0; position: relative; }
  12. body > div {
  13. position: absolute;
  14. height: 50px; width: 40px;
  15. top: 100px; left: 0;
  16. background: green;
  17. }
  18. ]]></style>
  19. </head>
  20. <body>
  21. <div></div>
  22. </body>
  23. </html>