I want to dynamically adjust the width of my child div based on the heights of other child divs. It’s hard to explain, so I’ll just show some photos ...
In this first image, the black square is my “parent” div. It contains other divs with different heights. The blue height of the div is static, but should be moved to the right. The red divs are the ones I'm having problems with. They should automatically adjust their own width if they are under the bottom of the blue div.
The second red div with a small height. See how the last div matches the width of the parent div. 
The second red div with a higher height. Now both bottom 2 div widths correspond to the parent div. 
One more example...

I am not sure if I should use special positioning or how to structure a div. It will be good if there is a little space under the blue div, I just want to have an equal amount of space between the red divs.
Here is what I created. See the yellow div hiding behind the blue div: http://jsfiddle.net/MVzHS/1/
#floatRight { width: 100px; height:200px; background-color:blue; position: absolute; right:10px; top:10px; }
Solution: http://jsfiddle.net/MVzHS/3/
source share