I am working on a photographic site. One of the things we strive for is the type of “film” display for images, in contrast to the usual thumbnail or “tabular” formation.
He works with tables. No problem. The only thing that makes me not want to use the table is the fact that I do not display data, there is no need for columns and rows.
Another thing that is a small wrench in gears is that I put the images as a background div. This is for the main “copy protection”, and also so that I can overlay elements on top of the photo when hovering over a div.
I am currently encoded like this:
container [ [image] [image] [image] [image] ]
I drew a diagram to help with visualizing this.

As soon as the width of the container is satisfied, div-images will be reduced to the next line. CSS for Divs is as follows:
.gallery_block_image_p { width: 354px; height: 532px; display: inline-block; margin: 0px; padding: 0px; margin-left: 10px; float: left; background-repeat: no-repeat; }
and for the container ...
#gallery { border: 0px solid black; position: relative; top: 99px; height: 532px; z-index: 99; }
and, just as importantly, the HTML used to div div images ...
<div id="gallery_1_0_img" class="gallery_block_image_p" style="background-image: url(gallery_img/ith/adamd_20101021_137.jpg);"></div>
source share