Photo Grid Like The New Flickr Design
The new responsive photo grid on the new flickr is gorgeous. It's full screen and locks together in an interesting, varied pattern. http://www.flickr.com/photos/delobbo I'd like to
Solution 1:
it's not really that hard. your code has to perform the folloging steps:
- choose a preferred row-height. this seems to be around
500px
on flickr. you can set a fixed value or choose a setting based on the clients screen resolution - get the available total width
- start a new row
- put in a photo and scale it to row-height and check your row-width
- repeat 4. until adding a photo makes your row-width exeed the total width
- scale down the height of this row (and the contained photos) until the width fits
- start the next line (see 3.)
Post a Comment for "Photo Grid Like The New Flickr Design"