Forum Moderators: not2easy
#banner {
z-index: 1;
display: block;
position: absolute;
width: 100%;
top: 0px;
height: 150px;
background-color: #6666cc;
border-bottom: 10px solid #cccccc;
}
...and the idea is that the banner will span the width of the viewport, regardless of screen resolution or window re-sizing.
It works fine with different screen resolutions but fails when the browser window is not maximized. Under that circumstance, the banner div shrinks to half its size and no longer accommodates the content inside it.
Why is that?