Scale DIV with tiles

Posted by user15350 on Game Development See other posts from Game Development or by user15350
Published on 2012-04-14T13:45:08Z Indexed on 2012/04/14 17:42 UTC
Read the original article Hit count: 268

Filed under:
|
|

I am trying to create a repeating background. I have a main DIV with a grid of small 16x16 DIVs. I am trying to scale the main DIV in CSS; when the small DIVs simply have a red background color everything works great, but when there is a background image in the small DIVs then borders become visible between the tiles.

This image explains the problem: http://cl.ly/FpNW/o

Check the HTML in these examples:

With BG-COLOR: http://jsfiddle.net/pTLXw/

With BG-IMG: http://jsfiddle.net/vkpuY/

Does anyone know what is causing this problem and how to fix it? If it is not possible to fix while using DIV, is there another way to do this?

Thanks you so much!

© Game Development or respective owner

Related posts about tiles

Related posts about html5