は、このコードを参照してください。ここに私のCSSは次のとおりです。
動的な高さのdiv
#content{
width:1250px;
position: relative;
top: 0px;
margin: 0 0 0 0;
padding: 0 0 0 0;
background: url("imgbg_body_03.png");
right: 66px;
height:2550px;
}
#firstrow{
margin: 0px 20px 0 0;
width:195px;
float:right;
}
#secondrow{
background-color:#772255;
width:740px;
float:right;
}
.newsrow{
width:366px;
float:right;
margin: 2px 2px 2px 2px;
text-align:right;
color:#660066;
/*font:bold 16px Arial;*/
}.mediarow{
/*background:url('imgbg_index_01.png');*/
width:366px;
float:right;
margin: 2px 2px 2px 2px;
}
#footer{
background: url("imgbg_body_02.png");
width:1250px;
height:38px;
position: relative;
top: 0px;
right:66px;
margin: 0 0 0 0;
padding: 0 0 0 0;
}
#footer ul{
margin: 0px 0 0 0;
padding: 5px;/* 0 0 0;*/
}
#footer ul li{
list-style-type:circle;
display:inline;
color:white;
margin : 0 35px 0 35px;
font:bold 12px Tahoma;
}
#footer ul li:hover{
color:#FFFF00;
}
#lastpart{
width:1250px;
position: relative;
top: 0px;
margin: 0 0 0 0;
padding: 20px 0 0 0;
background: url("imgbg_body_04.png");
right: 66px;
text-align:center;
font-weight:bold;
color:#660033;
height:56px;
direction: ltr !important;
}
私の問題は、私は、ID content
とのdivをしたいですit.I内部の最大のdiv要素に応じて長いか短い行くHeight
のためのすべての可能な値を試してみましたが、誰も役立ちませんでした。私は何をすべきか?
ありがとうございます。
after thirdRow。 3thRowのスタイルを見ることはできませんが、クリアされていないフロートはあなたを困らせる可能性があります。 –
@MikaelHärsjöそれは動作しますが、バックグラウンドをクリアします:http://i44.tinypic.com/w9jn6r.png – undone