Javascript Image Slider / Posts /

Resize the window keep image from being cut

0

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.

Thanks, 

Kira

Kira  8 years ago   viewed: 3455    

1 Answer

0

   

Your name*
Password
(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: