I have one main DIV container (orange) and several floating DIV containers inside (gray and red). These internal DIVs have some content, and the main DIV should correspond to a height that has a higher height. The problem I encountered is related to the very first DIV (gray). Depending on the contents inside the DIV, I have to keep it at maximum height, so if it is smaller than any other DIV, it should be sized to the maximum height if its main main DIV matches its size.

There are also two DIVs in the DIV that I am trying to position, one at the top and another at the bottom of the DIV. Whatever I have done so far has failed.
I'm sure CSS positionand bottom/ or properties are important for solving this problem top, but any combination that I have tried so far has not helped.
<div style="overflow:hidden; width:550px; background-color:#ffcc00">
<div style="overflow:hidden; float:left; width:180px; margin:5px 5px; background-color:#eeeeee">
<div style="">This block goes top!</div>
<div style="">This block goes bottom!</div>
</div>
<div style="overflow:hidden; float:left; width:250px; margin:5px 5px; background-color:#ff0000">Not that important block<br />with some content<br />...</div>
</div>
To keep my code clean, I publish only a simple structure and need a CSS solution to make it work. I can also publish the full code, but respect your time, and perhaps no one is crazy to read the tones of irrelevant lines.
Courses, properties, marginand background-colorhere are intended only for visual support.
, : Inner DIV # 1 DIV DIVs . , , , , DIV ( ).
, JavaScript, offsetHeight , ( CSS). , -, , IE8 + Chrome, Firefox Opera, .
SO , . , . , -, , , , , , .
:

(- ) DIV CSS.
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" valign="top">Top</td>
<td width="350" rowspan="2" valign="top">Side</td>
</tr>
<tr>
<td valign="bottom">Bottom</td>
</tr>
</table>