わかりました、これはとても一般的だと思いますが、どこにも答えが見つからないようです。基本的に、左の列が流動的で右の列が固定された2列のdivレイアウトが必要です。これらの両方の列の高さが親コンテナーの div を埋めるようにします。
現在、右の div が高さの 100% を占めておらず、何が問題なのかわかりません。
HTML div は次のとおりです。
<div id="nmv_div_twoColumnLayoutContainer">
<div id="nmv_div_twoColumnLeftContainer">
<div id="nmv_div_twoColumnLeft">
<p>the left div is good height</p>
<p>As this is the div that will typically have the most data</p>
</div>
</div>
<div id="nmv_div_twoColumnRightContainer" class="roundedCorners">
<div id="nmv_div_twoColumnRight">
the right div is a menu div but is only showing part
</div>
</div>
<div class="clearBoth"></div>
</div>
そして私の関連CSS
.roundedCorners {
-moz-border-radius: 2px;
border-radius: 2px;
}
.clearBoth {
clear: both;
}
div#nmv_div_twoColumnLayoutContainer
{
overflow: hidden;
}
div#nmv_div_twoColumnRightContainer
{
float: right;
margin-left: -250px;
width: 250px;
background-color: gold;
}
div#nmv_div_twoColumnLeftContainer
{
float: left;
width: 100%;
background-color: red;
}
div#nmv_div_twoColumnLeft
{
margin: 0 260px 0 0;
height: 100%;
background-color: yellow;
}
div#nmv_div_twoColumnRight
{
width: 250px;
background-color: green;
height: 100%;
}