0
I have a structure in HTML and CSS to make a slider, should work as follows: The images are next to each other, however, only one appears on the screen, and as the images will be next to each other, the slider goes "rotating", fitting the image on the screen. So here’s what I did. I put a float:left;
for images to be side by side, and this only works if the width size of the parent element is large enough for all images. Otherwise, the images are underneath each other. I need to make a slider like this http://cssslider.com/responsive-slider-2.html
or this http://globoesporte.globo.com/
, where the images are next to each other, and as we navigate, they drag left and right, my problem is that I can’t get the images aligned next to each other. I can only do it when I increase the width of the parent element, and then I can’t "hide" the images that leave the screen.
Here is my fiddle: https://jsfiddle.net/0gjoa6n8/1/
If you change the overflow
of #slider
for scroll
, They will see that the image is not side by side, but one below the other. How to leave them side by side, however, hiding those that leave the screen ?
Thanks for the help, but it wasn’t what I needed, I just needed to add a
nowrap
inul
. But thanks for your help !– anuseranother