Skip to main content
4 of 4
added 7 characters in body
Yisela
  • 26.5k
  • 11
  • 74
  • 122

Can I use CSS spritesheets to give a div a re-sizable background?

I'm trying to give a div a background according to a spritesheet, meaning that it'll define the parts from the sprite sheet and use those accordingly in the div.

This is my sprite sheet image:

enter image description here

Now I would like to have a "dynamic" div that could get resized and would look similiar to this:

Target look

If anybody could help or point me in the right direction that would be appreciated.