I'm trying to have a "header" div fixed, when it's scrolled position hits the top of the browser. Of course that takes it out of document flow, so it will require a set width. This works fine is the container's width is set to a specific value. But if the container is fluid, such as [ min-width: 300px; max-width: 500px; ] then the whole thing falls apart.
CSS
#container{
min-width: 300px; max-width: 500px;
background: #FFC; }
#wrapper {
/* width:500px; <= this works */
width:100%; /* this does not work*/
border: solid 1px red; }
#logo_banner {
width: inherit;
border: solid 1px red; }
.banner_fixed {
position:fixed;
top:0; }
HTML
<div id="container">
<div id="wrapper">
<div id="logo_banner">
Banner Here
</div>
</div>
</div>