I have a main container <div>that contains 4 or 5 other sub <div>s. The container has a fixed height and a fixed width. What is the best way to arrange sub divs so that they are in the upper, lower, and lower right directions?
I tried to swim the subtrees, but that just gives me the right and then the upper> lower queue.
Basically, I want this
[ sub div 1][sub div 3][sub div 4]
[ sub div 2][ ][sub div 5]
When I mark the code as follows:
<div id="container">
<div class="subdiv">sub div 1...</div>
<div class="subdiv">sub div 2...</div>
<div class="subdiv">sub div 3...</div>
<div class="subdiv">sub div 4...</div>
<div class="subdiv">sub div 5...</div>
</div>
Note that sub divs can have a variable height but a fixed width.
Thank,
source
share