I have a white header above a blue banner, as I scroll down to the body of my website the header gets a little lost in the white background of the website, I want to add a little shadow (using a jpeg file) but I only want it to appear 'after' the blue banner, is this possible? Here's what I have so far?
Here is the Javascript
<script>
var divs = $('.line');
$(window).scroll(function(){
if($(window).scrollTop()<101){
divs.fadeOut("slow");
} else {
divs.fadeIn("slow");
}
});
</script>
And here is the CSS
.line {
position: fixed;
z-index: 100000;
margin:0 auto;
top:0px; width:100%;
background:#ff0000;
}
Any help would be appreciated. Thanks guys
tag, it worked like a charm!
– Liam David Hodnett Jan 30 '14 at 15:41