Hey Mike!

That works great in firefox, Opera and Safari and it is exactly what I'm
looking for.
But when testing it in IE 7.0 it doesn't show anything except for the
background colors.

Any suggestions with that?
John



malsup wrote:
> 
> 
>> I got it rotating, however I cant get the images to stay in the middle of
>> the div. If I add
>>
>> position: relative !important;
>>   top: 50%;
>>   left: 50%;
>>
>> to the image class when being displayed it centers horizontally but not
>> vertically, but it also breaks the fade transition by displaying the new
>> image below then placing it up once the image before has been removed.
> 
> 
> You need to get a little bit sneaky to get the images centering
> properly.  Here's an example using your markup:
> 
> http://jquery.malsup.com/cycle/test/nov20.html
> 
> Note that since your markup does not include size info on the  
> tags I'm delaying the start of cycle until the window load event
> fires, rather than using the ready event.  That way sizing info can be
> calculated accurately.  Then I calculate the size of the slide in a
> 'before' callback and update the margins based on the diff with the
> container's size.
> 
> Mike
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jquery.cycle-centering-image-tp20604074s27240p20610493.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to