I am using the Jssor Slider (http://www.jssor.com/demos/slider-cluster.html). As the slides I have are huge (about 2000px in width), they will scale significantly on smaller devices (even iPad). I don't mind having the sides (left and right) to be cropped off symmetrically on smaller devices.
However, what happens is that the slider is fixed on the left at 0px. 1) Is there anyway I can centralize the whole slide container? 2) And scale the slide container based on height of window/browser?
I did reference this but doesn't inspire any solution: Jssor slider 100% width
Anyone can help please? Thank you.
re 1: here is a trick to auto center anything,
re 2: you can scale the slider to any size with api call 'jssor_slider1.$ScaleWidth(width)' as jssor slider always keeps aspect ratio, to fit the slider to height of window, you can detect window height, and then calculate width.
General FYI: "margin: auto" is your friend for centering most HTML elements horizontally.
responsive code to fit height or width