So I was working on this site and I had the displaying how I was wanting. After working on a lower page banner all of a sudden everything disappeared and all I was left with was the background Image in the Body.
Can you figure out why the topImage id does not display? It is frustrating as hell to see it work one second and then not the other:
<style>
body
{
background-image:url("images/Background.gif");
background-repeat:repeat-y;
background-attachment:fixed;
background-position:center top;
}
#topImage
{
position:absolute;
background-image:url("images/Top-Banner.gif");
background-repeat:repeat-x;
width:100%;
top:0px;
left:0px;
}
</style>
<body>
<div id="topImage"></div>
</body>
Sorry if this a really basic question, I am kind of new at this.
try using the following syntax
hope that sorts out the problem
#topImage
doesn't have a height set, and no elements inside it which would give it a height.Or just stick an
img
tag inside thediv
instead of usingbackground-image
, that would work as well.