My slideshow on top of page has width:100%
and height:400px
css attributes.
But I want to make a responsive web page and make the slideshow height variable according to the width of the page.
I have tried using min-height
but it doesn't work.
I tried putting the container's height
on 400px
and image height on auto, which solves the problem partly as slideshow's height changes responsively but the container stays on 400px
which makes a empty space between slider and menu bar.
Do you have any ideas?
My css is as following:
.container {
padding:0px;
margin:0px;
position:relative;
padding:0;
height:400px;
}
.img {
position:absolute;
left:0;
top:0;
width:100%;
height:400px;
min-height:auto;
}