I have a div (article) which has two childs (header and #content_outer). Header has a correct height, and I would like #content_outer to have a height (without giving a specific number for example:200px) so that header height + #content_outer height = article height.
Here is a fiddle: http://jsfiddle.net/fyNX4/
(In the fiddle #content_outer shouldn't exceed article div in the bottom)
I would like that the solution is only with css.
Thank you very much.
EDIT:
To be more specific, this is my desired solution: http://jsfiddle.net/fyNX4/5/
I gave #content_outer --> height:240px;
But I would like to give a height with % or other solution that could apply if the header had more text (and have more height). ( http://jsfiddle.net/fyNX4/8/ )
You want something like this:
Here is the updated fiddle:http://jsfiddle.net/fyNX4/6/
http://jsfiddle.net/fyNX4/9/
I had to modify your structure by adding some otherwise unnecessary markup:
table-row
s are necessary because they are the only way to order table cells verticallytable-cell
s are necessary, becausetable-row
s don't accept padding or height.table-cell
s ignoreoverflow