Let's say we have the following HTML:
<div id='parent'>
<div id='child'>
</div>
</div>
If we set this CSS :
#parent {
width:1000px;
height:1000px
}
#child {
width:20%;
height:40%;
margin-top:10%;
}
The child element will have a margin-top
that will be a %
of the parent height or the child height? Also there is a different way that browsers render the %
sizeing when it comes to margins ? If there is a padding
applied to child/parent , it will influence the margin
?