行のデザインで3つのdivを作成しようとしています。ヘッダーとフッターの高さが固定されている場所。中央のdivは、空のスペースを埋めるために拡張されます。私は試しましたが、私が得た最も近いものは以下のコードです。フッターdivを拡張する中央divにまだ問題があります。
html:
<div id='container'>
<div id='rowOne'>row 1</div>
<div id='rowTwo'>row 2</div>
<div id='rowThree'>row 3</div>
</div>
css:
#rowOne {
width: 100%;
height: 50px;
background: green;
}
#rowTwo {
width: 100%;
background: limegreen;
height:100%;
overflow:hidden;
}
#rowThree {
width: 100%;
position: fixed;
clear: both;
background: green;
position:absolute;
bottom:0;
left:0;
height:50px;
}
#container {
height: 100%;
}