Download & Extend

centering slides of different widths

Project:Views Rotator
Version:6.x-1.0-alpha2
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

I've been trying to figure this one out for awhile. Giving the container div a fixed width and a margin:auto property centers the slides of that same width. But I have a window pane that's 780x520, with some slides that are that full size, but other slides that are 346x520...

The default behavior is to align all slides to top left... How could I go about centering the 346x520 slides? Can I use Javascript to dynamically alter the width of the container div? (set its style to 780px wide for certain slides, and 346px wide for the narrow slides.) I'm not a great Javascripter, so any pointers here would be much appreciated! It would be great to have this functionality be built in, or be an option to select in the settings of the rotator.

nobody click here