How can I set up a group of 3 divs (dynamic size and visibility) to automatically fill (height) a specific space on the page.
For example I have so far created:
<div id="container">
<div id="details">...</div>
<div id="video">...</div>
<div id="map">...</div>
</div>
<div id="other_content">...</div>
The #container should be full width, with automatic height depending on the size of the largest child div.
The #details div should be displayed on left 'column' (this is normally the tallest div, but sometimes will be smaller than the combination of both #video and #map).
Both #video and #map divs should be displayed as right 'column' with #video on top of #map.
NOTE: #video is not always visible - in such cases #map should resize to height of #details (if larger) | or display as a minimum height (if #details is smaller).
CSS
#container {
float: left;
}
#details {
float: left;
width: 290px;
}
#video {
float: left;
width: 560px;
}
#map {
float: left;
width: 560px;
min-height: 345px;
height: 100%
}
#other_content {
clear: left;
}
I can't quite seem to get this to work, having a dynamically sized (height of largest child) container with all child objects displaying the full height.