There are two divas in a column, the first diva has a dynamic height (that is, an unknown one) depending on the content. The second div should occupy the rest of the height minus the height of the first diva. Is it possible to implement this without javascript and without a table?
HTML
<div class="wrapper"> <div class="title">text text text text text text text text text text text text text text</div> <div class="body">text</div> </div> CSS:
.wrapper { height: 90%; width: 200px; background: red; padding: 0 5px; position: fixed; } .title { background: blue; } .body { background: yellow; height: 100%; } Jsfiddle