Welcome Guest, Not a member yet? Register   Sign In
Best Practice for Images : Generating Thumbs or Resizing on the Fly
#6

[eluser]Steve_K[/eluser]
I like the JS fit-in-container option, yeah. I'd thought about that, too, but was giving it a go with CSS for a bit before I moved to JS. I reckon the plugin would work best, given that it looks for the dimensions of a container? As I understand it, if the JS just changed the width and height to whatever I specified, it's essentially acting like fixed CSS. Also, I've noticed that setting the display of the image to a percentage width via CSS has some decent results, as well.

I'll give the jQuery plug a try, thanks!

EDIT: Yeah, such was my thought, too. Honestly, the variable height doesn't look bad, though.


Messages In This Thread
Best Practice for Images : Generating Thumbs or Resizing on the Fly - by El Forum - 04-30-2010, 10:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB