Forum Moderators: not2easy
Because the image looks the same from left to right, i thought i could save bandwidth by using a 2px wide, 700px high image, and repeat it horizontally for the width of my site. When i do that though, it overflows the width of my site.
How do i repeat an image (using css) to repeat only for 717px and stay centered?
The problem i had with this, is the CSS code to layout the image. I want it to repeat horizontally, but stay fixed, so it doesnt move when you scroll and content moves over it.
The CSS code i used was
#bgimage {
background: url(http://www.mysite.com/bgimage.png) fixed repeat-x center bottom; width: 717px;
}
It stays centered, and limited to 717px, but it doesn't stay fixed. It just moves with the page..