i have a header that is fixed to the top then the content simply is scrolled underneath. So to prevent the content showing through this header i have a background image of the same as the main body and this is fixed.
All works well in everything but in chrome when i scroll the content up and the youtube video then goes underneath this, it causes the header contains background to align left and shrink, then the more you move up it then disappears, which shows the content within the site, which is not the way i want it.
Any ideas on how to prevent this from happening:
some code below:
header{
width:960px;
position: fixed;
top: 0px;
margin:0 auto;
padding:0;
text-align:center;
display: block;
background: url('../imgs/Background_header.jpg') no-repeat top left fixed;
}
content container css
.content-container {
width:960px;
padding-top:230px;
z-index:0;
margin:auto;
overflow: hidden;
}
the html:
<div class="content-container">
<header>
<!-- header stuff -->
</header>
<iframe width="560" height="315" src="......
.. other stuff.
Any ideas would be appreciated thanks, also if there is a better way to produce this then that would eb great as well.
thanks
EDIT: if not clear, the content scrolls underneath the header, and when it reaches the youtube player, this is when the header background image screw up.