I have a header-container with a background image, like so:
#header-container
{
background:url(../img/bg.jpg) repeat-x 0 0px;
margin:0px auto;
width:100%;
text-align:center;
}
When my browser is in fullscreen (Firefox, Opera, IE), I get the following result (everything is fine):
When I resize the browser to a smaller window i got this (so far so well):
and when i scroll now to the right the background image doesn't repeat.
Is there a way to fix it so that the image will repeat when I scroll to the right?
I know it would work when i move the background image into the body of the CSS, but I have many images for different divs, so I'm not able to do it with the body background image.
Hope somebody can give me a hint :D
Best regards,
Bernte
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…