I am encountering an issue. The appearance of my page is not matching what I had envisioned.
*{margin:0; padding:0;}
.width{width:980px;margin:0 auto;}
.header{width:100%;background-color:#ffffbb;}
.leftpanel{float:left;height:50px;}
.rightpanel{float:right;height:50px;}
.clear{clear:both;}
h2{font-size:32px;}
<!-- HEADER AREA -->
<div class="header">
<div class="width">
<div class="leftpanel">
<h2>This is first sentence</h2>
</div>
<div class="rightpanel">
<h2>This is second sentence</h2>
</div>
<div class="clear"></div>
</div>
</div>
When I minimize the window, the color of my header is shrinking and not extending across the full width of the content. How can I resolve this? I attempted to use max-width:980px; but this causes the content to collapse when the browser is minimized. I want the bottom scroll to cover the entire width without collapsing the content, and for the background color to remain fixed.