brentnicholas
04-13-2007, 07:48 PM
Howdy all -
So maybe I'm going about this all screwy like...
First my goal: I have a header DIV with a back ground img no-repeat (1200x80), but on some monitors that's not long enough. I could make the image 10000 width, but that's not good?? Or is it?
So what I did was make another DIV wrap around the header div and set it's background to a repeating graphic that would continue on.
It doesn't work though. So is there some easier way to do this? or have I done something wrong. or do I just make the first graphic reallllllllly long?
EX:
<style>
#header_bg {
background:#2C55A7 url(../images/RoadMap1_repeat.jpg) repeat-x right;
position:absolute;
margin:0;
top:0;
right:0;
}
#header {
background:#2C55A7 url(../images/RoadMap1.jpg) no-repeat;
position:absolute;
display:block;
margin:0;
top:0;
right:0;
width:100%;
height:5.2em;
z-index:5;
}
</style>
<div id="header_bg">
<div id="header">
</div>
</div>
Thanks for your time -
BN
So maybe I'm going about this all screwy like...
First my goal: I have a header DIV with a back ground img no-repeat (1200x80), but on some monitors that's not long enough. I could make the image 10000 width, but that's not good?? Or is it?
So what I did was make another DIV wrap around the header div and set it's background to a repeating graphic that would continue on.
It doesn't work though. So is there some easier way to do this? or have I done something wrong. or do I just make the first graphic reallllllllly long?
EX:
<style>
#header_bg {
background:#2C55A7 url(../images/RoadMap1_repeat.jpg) repeat-x right;
position:absolute;
margin:0;
top:0;
right:0;
}
#header {
background:#2C55A7 url(../images/RoadMap1.jpg) no-repeat;
position:absolute;
display:block;
margin:0;
top:0;
right:0;
width:100%;
height:5.2em;
z-index:5;
}
</style>
<div id="header_bg">
<div id="header">
</div>
</div>
Thanks for your time -
BN