View Full Version : # of Columns Dependent Upon Column Width

06-17-2009, 09:05 AM
I am creating a photo gallery template that will set within a main content div. I would like the number of photos (columns) in a row change dependent upon the defined width of the photos (the parent container width being fixed).

So if the photo width is reduced, then photos move up from the row below dependent upon how many will fit in the div width.

I tried inserting plane images, however can't get them to line up next to each other. Also tried tables, however can't keep the table inside the parent container.

Any suggestions?

06-18-2009, 03:33 PM
Just float each image to the left.

06-24-2009, 07:34 AM
How do I get an image to be 100 of the screen width, without creating a sideways scroll bar in lower screen resolution displays?