子要素を親に合わせるにはどうすればよいですか?つまり、#contentにスクロールバーを表示しますか?
HTML:
<div id="parent">
    <div id="header">
        varied-sized header
    </div>
    <div id="content">
        the real content<br>
        this can be so long<br>
        that it doesn't fit into the parent<br>
        so this should get a scroll bar<br>
        so that the user can... scroll it down<br>
    </div>
</div>
CSS:
#parent {
    background-color: red;
    display: inline-block;
    width: 200px;
    height: 300px;
}
#header {
    background-color: yellow;
    font-size: 32px;
    margin: 20px;
}
#content {
    background-color: green;    
    font-size: 24px;
    margin: 20px;
    overflow: auto;
}
編集:
#contentで高さを指定せずに逃げることはできますか?そのプロパティの正しい値を計算することは、(他のものが変更された場合)困難で面倒な場合があります。