Javascript Image Slider / Posts /

Resize the window keep image from being cut


How could I set the image to always have a width of 100%, but set the height to whatever the proportions of the image demand. The idea is that when resizing the browser window, the image would not get cut when making the window small, and white space would not appear when making it very large. With a simple image you would do this by setting width:100% height:auto. Is there a way to achieve this effect with this slider? I have found that setting height to auto in various locations makes the slider disappear entirely.



Kira  8 years ago   viewed: 3369    

1 Answer



Your name*
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: