中間コンテンツの可変幅でヘッダーとフッターを 100% に拡張したいと考えています。
ソースはhttp://jsfiddle.net/9dWcZ/にあります。
HTML:
<div class="header">
this is header
</div>
<div class="content">
this is content
</div>
<div class="footer">
this is footer
</div>
CSS:
.header, .footer {
width:100%;
background:#999;
height:200px;
position:relative;
float:left;
clear:both;
display:block;
}
.content {
width:2500px;
height:100px;
background:#9B191B;
float:left;
}
ヘッダーを固定したり、構造を変更したりしたくありません..
助けてください..
ありがとう、