I don't know how to ask this without a picture. I have two divs, side-by-side, within another div with padding and margins as such. This is what I WANT to achieve:
+-------------------------------------------------------------------+--------+
| A | C |
| +-----------------------------------------------------------+ | |
| | B | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| +-----------------------------------------------------------+ | |
| | |
+-------------------------------------------------------------------+--------+
but here is what I get. I am able to float the divs and compensate for margins, etc, but I can't get div C to extend to the entire height of A. Neither A nor B have a fixed height, so how do I get C to extend to the full height of A?
+-------------------------------------------------------------------+--------+
| A | C |
| +-----------------------------------------------------------+ | |
| | B | | |
| | | | |
| | | | |
| | | +--------+
| | | |
| | | |
| | | |
| +-----------------------------------------------------------+ |
| |
+----------------------------------------------------------------------------+
The height of A is stretched by the height of B. It's an entirely fluid layout too, so the width isn't fixed either. Basically, I need C to extend the entire height of A.
I tried playing around with all the heights, but I can't get it to work because the heights aren't fixed :(
A is just a div wrapper basically, no padding, no margin. B is actually composed of two divs with margin and padding, float:left; C is just one div, float:right;
EDIT: I need to support IE as well, WITHOUT CSS hacks