Search code examples
cssspritebackground-repeat

background repeat tiled bgImage inside an sprite image?


Lets say this is our sprite

enter image description here

(please ignore the black forms) Is there a way to repeat the gray -on the left- tiled image so it looks like a repeated background?

enter image description here


Solution

  • Nope, as far as I know, this is not possible, not even in CSS3.

    You will need to separate the images.

    There is the background-clip property but that controls the clipping of the background image in relation to its container, which is something else.