- This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- The topic ‘1920px slider images centred’ is closed to new replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I have a slider that contains images that are 1920px wide.
However, if the users screen is narrower that the images they need to be centred and the overflow set to be hidden.
This doesn’t sound hard, but for some reason I can¨t pull this off.
Please help me! :)
http://jsfiddle.net/zBNUm/
If you set the image as a background on the slide, you can just position it via CSS http://codepen.io/ggilmore/pen/oaFJL
Since I have a slider for wordpress where each image is wrapped withing an img tag, this won’t work. However, if someone knew a WordPress jQuery plugin slider that uses background images instead of , it would solve my problem :)
You should be able to edit the code. Other than that you can do this: http://codepen.io/ggilmore/pen/oaFJL
That doesn’t solve my problem since I can’t use the “background-image” technique :)
Did it not update for you? Try giving it a hard refresh. I switched it to image-based.
It did update now, thank you for the help! :)
Hi. I have the same problem, but your code at http://jsfiddle.net/zBNUm/ doesnt work.
Could you please help me? Did you update that code?