CSS要素のdiv要素を絶対配置の予定ブロックとしてHTMLテーブルデザインでカレンダーを作成しようとしていますが、ブロックは絶対的であるため、作成したい行をいくつでも重ねることができます予定、それは私が欲しいものである水平方向に伸びません。絶対divブロックを伸ばすにはどうすればよいですか? または、より良い解決策はありますか?(制約: IE6+ をサポートする必要があります)。この問題は以下で強調されています。
以下は、コードのスニペットの例です。
<table class="calendar_dayview_tableformatting">
..
<tr>
<td class="calendar_dayview_cell">
a href="#" class="calendar_dayview_dayformatting">09</a>
<div class="preference">
<div class="preference_appointment"></div>
</div>
</td>
</tr>
</table>
.preference {height: 60px; min-width:445px ; border: 1px solid #ffc61e; background-color: #ffc61e; margin-top: -1.4em; margin-left:2.5em; position:relative;}
.preference_appointment {height: 180px; min-width:445px ; border: 1px solid black; background-color: #f9eaad; position:absolute; margin-top:-1px;z-index:1;}