親divのような親タグを position:relative
または position:absolute
として配置し、最後のdivを相対位置として指定してみます。また、Explorer以外のブラウザでページをテストしてください。 Firefox、Chrome、Safariなどです。 Firefox、Chrome、およびIEのプラグイン市場に存在するFirebug拡張機能を使用して、可能であればコードをデバッグしてください。
試す
シンプルな構造の例:
<div id="container">
<div id="leftmenu">LEFT</div>
<div id="content">
<div class="table" id="MedeLogSearchTable">
<table width="100%" border="1">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</div>
</div>
</div>
とCSS:
#container {
max-width: 1600px;/* a max-width may be desirable to keep this layout
from getting too wide on a large monitor. */
min-width: 600px;/* a min-width may be desirable to keep this layout
from getting too narrow. */
background: #FFF;
}
#leftmenu {
float: left;
width: 20%;
}
#content {
width: 80%;
float: left;
}
.table {
width: 100% ;
max-width: 100%;
height: 250px;
background-color: #ffffff;
border: 2px solid #ccc;
overflow: auto;
white-space: nowrap;
margin-top: 20px;
}