P
Paul.Lee.1971
Hi everyone,
Hopefully someone can help me.
I'm trying to create a webpage using css, rather than frames, so that
the top 100 pixels of the browser window will show a fixed, non-
scrollable image. The "frame" below this will show another image,
which will allow the text to be scrollable, but will not allow the
image to move. I don't want the text in this bottom frame to scroll
over the top frame. I've written the following css and html but it
doesn't display the two images, nor does it prevent the bottom-most
text scrolling over the top-most frame, even though I have specified a
higher z-order for it. Te top frame will just show the image; the
bottom will show an image and white text. Can anyone please help?
Many thanks
Paul
--
This is defined in the head section:
#header
{
position: fixed;
background-image: url(top_backdrop.jpg);
background-repeat: no-repeat;
top: 0px;
bottom: 0px;
height: 100px;
width: 100%;
background-attachment: fixed;
z-index; 10;
}
#mainbody
{
position: relative;
background-image: url(backdrop_main.jpg);
background-repeat: no-repeat;
top: 100px;
bottom: 0;
background-attachment: fixed;
color: #ffffff;
}
</style>
and then, in the body of the html page, I have
<div id="header"></div>
<div id="mainbody">Body text here</div>
Hopefully someone can help me.
I'm trying to create a webpage using css, rather than frames, so that
the top 100 pixels of the browser window will show a fixed, non-
scrollable image. The "frame" below this will show another image,
which will allow the text to be scrollable, but will not allow the
image to move. I don't want the text in this bottom frame to scroll
over the top frame. I've written the following css and html but it
doesn't display the two images, nor does it prevent the bottom-most
text scrolling over the top-most frame, even though I have specified a
higher z-order for it. Te top frame will just show the image; the
bottom will show an image and white text. Can anyone please help?
Many thanks
Paul
--
This is defined in the head section:
#header
{
position: fixed;
background-image: url(top_backdrop.jpg);
background-repeat: no-repeat;
top: 0px;
bottom: 0px;
height: 100px;
width: 100%;
background-attachment: fixed;
z-index; 10;
}
#mainbody
{
position: relative;
background-image: url(backdrop_main.jpg);
background-repeat: no-repeat;
top: 100px;
bottom: 0;
background-attachment: fixed;
color: #ffffff;
}
</style>
and then, in the body of the html page, I have
<div id="header"></div>
<div id="mainbody">Body text here</div>