Is there a way to create a "title bar" with text only, that stays fixed on top and the content below scrolls underneath it? Additionally, is it possible to make the title bar transparent for the background but not for the content below it?
Also, can the same background be applied to the title bar in order to make it non-transparent while keeping the background image responsive? Check out an example here.
CSS:
.top_menu { position:fixed; height:100px; margin-left:5%; width:95%; z-index:2; }
.content { position:relative; left:180px; top:100px; z-index:2; }
#background_image { position:fixed; top:0; left:0; bottom:0; right:0; background:#D3AA69 url("/img/background.gif") repeat-x; background-size:auto 100%; }
HTML
<body>
<div class="top_menu"></div> <!--(the DIV I want to stay on top)-->
<div class="content"></div> <!--(the DIV I want to hide when scrolling)-->
<div id="background_image"></div>