Covert
09-30-2007, 06:05 PM
I seriously need some help with this. I'm redesigning my detachment's website (which I am now in charge of) and have been racking my brain with this for the last few hours.
I need to have an image repeat down the left and right sides, but as you know, with html/css you can only have on background image. So here's what I have:
<style type="text/css">
body {
margin:0;
padding:0;
background:#000000 url(sidepanel.png) left top repeat-y;
height:100%;
}
#bkgnd2 {
position: absolute;
top: 0px;
right: 0px;
height:auto;
width:100%;
min-height:100%;
background:transparent url(sidepanelrev.png) right top repeat-y;
text-align:center;
}
* html #bkgnd2 {
height:100%;
}
</style>
</head>
<body>
<div id="bkgnd2">
</div>
</body>
And this is what I get:
http://img228.imageshack.us/img228/4072/5343333pd0.jpg
As you can see, it works, only it stops after the initial page. If I were to scroll all the way up, it looks good, but once you scroll down, the image stops repeating on the right side. Any ideas on how to fix this?
(It does this is both Firefox and IE.)
I need to have an image repeat down the left and right sides, but as you know, with html/css you can only have on background image. So here's what I have:
<style type="text/css">
body {
margin:0;
padding:0;
background:#000000 url(sidepanel.png) left top repeat-y;
height:100%;
}
#bkgnd2 {
position: absolute;
top: 0px;
right: 0px;
height:auto;
width:100%;
min-height:100%;
background:transparent url(sidepanelrev.png) right top repeat-y;
text-align:center;
}
* html #bkgnd2 {
height:100%;
}
</style>
</head>
<body>
<div id="bkgnd2">
</div>
</body>
And this is what I get:
http://img228.imageshack.us/img228/4072/5343333pd0.jpg
As you can see, it works, only it stops after the initial page. If I were to scroll all the way up, it looks good, but once you scroll down, the image stops repeating on the right side. Any ideas on how to fix this?
(It does this is both Firefox and IE.)