<!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>