Drew Wilson on 05 May, 2010 11:55 PM
I would need to see your example.
Something doesnt sound right, because the code DOES hide the image
before it does it's magic.... also the other things you mentioned
make me thing you are not putting your images inside containers
that have defined Widths & Heights.
From the Docs:
"t then centers the images based on it's parent element. So if you
don't wrap your image in an element at all, it will center it based
on the BODY element, which would not be good. So make sure you have
a container element for the image to be centered against."
Drew Wilson on 06 May, 2010 12:20 AM
definition lists are fine...
have you tried it without the plugin that loads the images after
you scroll down? I have a feeiing that may be the problem.. that
plugin may be taking the images off the page before imgCenter can
grab them and do the magic.
This will result in a squished yet correctly sized image.
2) Right before your jquery imgCenter invokation, strip off the
hardcoded width and height from your images:
// first remove squished width/height which was set to prevent images from jumping
// now use imgCenter to virtually crop and center images
This is only helpful when you've got a whole lot of images or a