Child resize according to parent resize
It is incredible how well nowadays browsers handle resizing of elements.
The simplest way you could get a resize on a child element when the parent has been resized is to create two css rules:
.parent {
width:100px;
height: 50px;
}
.child {
position: absolute;
width:100%;
height:100%;
}
Of course the parent element should contain the child element.