From: Sam Mayes Date: 2005-09-01T02:31:20+09:00 Subject: building a gallery layout ------=_Part_3443_2605247.1125509476090 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Ive been trying to build a gallery layout for images. let say i have an=20 object of upto 25 images (results from an activerecord query) that I want t= o=20 display on a 5x5 grid but put blanks in the spaces should the result only= =20 have say 13 images in the result. I need to make a table and have it do all= =20 the table rows and columns based on the number f items returned in the ar= =20 object. Does anyone have a quick exaple or a little pseudocode to help me= =20 along. Obviously Im fairly new to ruby so be gentle please. thanks Sam ------=_Part_3443_2605247.1125509476090--