Witam,
jak stworzyć pętla która wyświetli mi np 4 divy(265px,190px) po 2 w jednej osi za pomocą left/top
1,2
3,4
<div id="map_container"> <div style="position: absolute; width: 265px; height: 190px;"> <img style="position: absolute; z-index: 2; left: 0px; top: 0px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 0px; top: 38px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 0px; top: 76px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 0px; top: 114px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 0px; top: 152px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 53px; top: 0px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 53px; top: 38px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 53px; top: 76px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 53px; top: 114px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 53px; top: 152px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 106px; top: 0px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 106px; top: 38px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 106px; top: 76px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 106px; top: 114px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 106px; top: 152px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 159px; top: 0px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 159px; top: 38px;" src="img/v4.png"> <img style="position: absolute; z-index: 2; left: 159px; top: 76px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 159px; top: 114px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 159px; top: 152px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 212px; top: 0px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 212px; top: 38px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 212px; top: 76px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 212px; top: 114px;" src="img/gras4.png"> <img style="position: absolute; z-index: 2; left: 212px; top: 152px;" src="img/gras4.png"> </div> </div>