On a 2x2 grid, I am sure that you will not show any data. Even so, I think it will not be inside each grid.
So, you have to create a 2x2 image image (or 3x3 with 1 pixel) in your graphics program and create the div you want "grid-ify" and give div a background
.gridify { background: url(image/grid.jpg) repeat left top; }
Where gridify is the class of your div / span / what have you.
Further editing
Now, since you want to click and drag to select an area, you can try this to create a div on top of the .gridify div, and give the new “clicked and dragged” div a darker and more transparent background ... This will give the illusion of selecting boxes .
source share