I'm using clip to create thumbnails for a gallery. Unfortunately, clip can only be used when an element is absolutely positioned. Applied equally to each img, this of course makes them all sit on each other while using one CSS style, something like this.
.Thumbnails {
position: absolute;
height: 105px;
clip: rect(50px 218px 155px 82px);
}
How can I then position them relative to each other? I just want basic rows.
I wouldn't recommend a pure css solution. Have you considered a library such as phpThumb? From there you just use the following css:
.Thumbnails{float:left}
And references to the thumbnails end up looking like this:
<img src="path/to/phpThumb.php?src=image.jpg&h=100&w=100&zc=1" alt="some image" />
That line would basically create a 100x100 thumbnail, the zc specifies a zoom crop (crop to match aspect ratio, and the thumbnail library does some pretty nifty caching to reduce server load.