Jump to content


Justified display for RSS feed images

  • Please log in to reply
1 reply to this topic

#1 Brent Peters

Brent Peters


  • Joined: 15-February 12

Posted 27 January 2013 - 20:32

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.

#2 palenous



  • Joined: 19-January 13
  • Location: Ohio, United States
  • OS: Windows 7 Ultimate
  • Phone: Samsung Galaxy SIII (Verizon)

Posted 28 January 2013 - 14:43

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?