Sign in to follow this  
Followers 0
Brent Peters

Justified display for RSS feed images

2 posts in this topic

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?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.