Structure of HTML is the following:
<div id="c1">
<div id="c2">
<div id="d1"></div>
<div id="d2"></div>
</div>
</div>
I want #c2 to be aligned vertically inside #c1 in such a way that #d2 verticaly centered inside #c1.
Here is clarifying picture:
It is OK if it will only works in latest Chrome. Thanks.
UPD: Heights of #d1 and #d2 are not fixed. Distance between #d1 and #d2 is fixed.
UPD2: You can forget about #c2. I want #d1 and #d2 to be placed one after another and #d2 to be centered in #c1.