So, I tried creating a little puzzle game, which at the moment looks something like this
The top is the puzzle where you can put pieces that are chosen from a table with 1 row (scrollable) from the bottom of the page
Problem is those are 9 individual images cut from the original one.
I want to have only one image (the big one) and have them put into the bottom table in a similar manner to what's in the picture above in this post.
For simplicity sake, assume every table cell is 206px width
124px height
, so the big picture is 618px width
and 372px height
(because that's the size of that random image I found online)
I've set an id to each td
from the bottom table and tried using css sprite but to no avail.
I'm pretty sure I have to use sprite tho, I just can't seem to make it work. Plus, when I use background: url()...
it automatically resizes the cells even tho they have a fixed size.
Thanks in advance