Brent Peters Posted January 27, 2013 Share Posted January 27, 2013 I'm designing a lifestream and I'm wondering if there's any way to display images from an RSS feed in a justified format, like Flickr does. Link to comment Share on other sites More sharing options...
0 palenous Posted January 28, 2013 Share Posted January 28, 2013 You seem to be doing so already... unless you mean using differently sized images? If that's the case, there are a few options for you. I'm assuming you would want the height of all images in a row to be the same like Flicker has, but the width wouldn't matter except for keeping image proportions. One way to do this would be to calculate the width of the parent and calculate the width of each image. Then, using modulus, you could find the number of images to display, and the padding/margin to give each one. If you'd like an example, I could probably write one up for you. If you'd like to have the first image and last image be aligned completely to the left and right respectively, you could just give them each different classes from the center images. Am I making sense? Link to comment Share on other sites More sharing options...
Question
Brent Peters
I'm designing a lifestream and I'm wondering if there's any way to display images from an RSS feed in a justified format, like Flickr does.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts