[jQuery] Cycle plugin an absolute positioning
Hi all guys,
I have a problem with the fantastic Cycle plugin.
I have a group on images links whose I can't know their dimensions in
advance.
So the images sizes the customer will use will vary.
The Cycle plugin give the element an absolute positioning (so left 0
and top 0).
Since I need to center those images link in their container, I have
the problem to dynamically know their width to give the image link a
left position 50% and a left-margin -"the-image-size"/2 just to center
it.
Well, as you can see, I can say it in words, but sadly I am not able
to translate it in jQuery language.
Can someone help me? And above all, can try to explain me the "modus
operandi" on how to arrive to the code? I would like to learn the
"pattern" to find these kind of solutions and be able to do it myself.
Btw, thanks to Remy Sharp the author of jQuery For Designers[http://
jqueryfordesigners.com/] he is quite prefect in his tutorial, and
above all doesn't jump any step, and show us the code verbose before
to short it! Great resource!
This is the online example page:
http://www.bonsai-studio.net/clients/lamoy/wessel04/speed/
Thanks to anyone that can help me.