Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head>
<title>CSS 2.1 Test Suite: vertical-align (on an inline-block) (reference)</title>
<link rel="author" title="L. David Baron" href="https://dbaron.org/" />
<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
<meta name="flags" content="" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<style type="text/css"><![CDATA[
body { width: 500px; height: 500px; margin: 0; position: relative; }
body > div {
position: absolute;
height: 50px; width: 40px;
top: 100px; left: 0;
background: green;
}
]]></style>
</head>
<body>
<div></div>
</body>
</html>