I have a script that loads in a div with images running jQuery Cycle Lite Plugin.
I got the tip that I could us the "after" function in that plugin to make changes to the picture each time the image is refreshed. So I wrote this:
$("#display div").css({
margin: "0 auto",
"text-align": "center",
});
The html built like this:
<div id="display">
<div id="slideshow1">
<img ... />
</div>
</div>
This isn't working, whats wrong?
( this is supposed to center it horizontally, i need to center it vertically to )..
edit:
I kind of got it working but it still needs help, anyone that knows why its acting weird?
http://hem.bredband.net/noor/bildspelet.html
thanks @pekka for the link