I've written the following markup and styles:
<div id="parent">
    <div id="child">
    </div>
</div>
#parent{
    width:300px;
    height:300px;
    background:aqua;
}
#child{
    margin: 100px;
    width:500px;
    height:500px;
    background:black;
}
So why doesn't the div#parent appear at the left-top corner, but is moved to the bottom?
jsFiddle
But if we consider the following jsFiddle then it works as I'm expected.