blob: 8806b6bb350ea75502cbc5fe05536d2ce1c68d34 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en">
<head>
<title>Margin Collapsing: negative margins (easy)</title>
<style type="text/css">
.container { background: red; height: auto; border-top: 1em red solid; border-bottom: 1em lime solid; }
.test { border-top: 1em solid lime; margin-top: -1em; }
</style>
</head>
<body>
<p>There should be no red below.</p>
<div class="container">
<div class="test"></div>
</div>
</body>
</html>