I am making a web app where you can draw in a grid (like pixel-art). Say I have a 32x32 grid like this:
I can easily calculate the width and height of each bo