I have an HTML and CSS structure to make a slider, it should work as follows: The images are next to each other, however, only one appears on the screen, and because the images will be next to each other, the slider goes "spinning", snapping the image onto the screen. To do this, I did the following. I put a% of% to the images side by side, and this only works if the parent element width size is large enough for all images. Otherwise, the images are one underneath the other. I need to make a slider like this float:left;
or this http://cssslider.com/responsive-slider-2.html
, where the images are next to each other, and, as we navigate, they drag to the left and to the right, my problem is that I can not leave the images aligned side by side. I can only do this when I increase the width of the parent element, and then I can not "hide" the images that leave the screen.
Here's my fiddle: link
If you switch% from% from% to% with%, you 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?