How to position the separator line caused by repeating background
I would like to have repeat-x on my body background for a website, but the background is 1024 wide, so on wider displays, the line where the image starts over will be to the right of the body, and possibly visible. My content is in div 800 centered on the body. I would like the "split", as from a repeating background, to occur in the center of the body, where it is hidden by the content.
I'm pretty sure this is possible, with some trickery, the details of which don't match my newbies and layouts.
WORKAROUND: I used the Liquid Rescale plugin , which uses seam cutting to stretch the images in half to their original size. It works great and I'm happy with it, but that's not the answer to this question.
source to share
An easy way to do this without any CSS tricks or additional markup is to change the image. Center the background image with:
background-position: top center;
... and then offsets the actual image file in the editor. In Photoshop use Filter â Other â Offset and use a horizontal value that is half the width of the image. Likewise, in the Gimp use Layer â Transform â Offset .
This isn't the clean CSS solution you were looking for, but it's a good pragmatic fix.
source to share