I’m looking for a compatible CSS layout that will support the following;
+-----+--------+
| A | C |
+-----+ |
| B | |
| | |
| | |
+-----+--------+
C is the container for the whole thing. A is a div that can vary in height, according to it’s content (i.e. it’s not a fixed height). B is a div that is displayed directly beneath A, and fills the remaining height from C, once A has taken it’s share.
I’m hoping for a non-Javascript, non-table solution, hopefully!
EDIT: I should also add, that ‘C’ represents a container with a set height. In my current page, it is 100% of the height of the browser window.
You can achieve this with
display:tableproperty like this:HTML
CSS
Check this http://jsfiddle.net/X5Ze4/