i'm doing a slider and my idea is making a div, and put inside the 4 images. Images will stack one above the other (with position: absolute), and will have width: 1013px, max-width: 100%, height: auto(to be responsive). The problem is that, if a don't give the parent div a height, i can't hide the overflow, but if i do, when the screen is small, the height will be the same, so you can see for example, the half of the second image.
I made this fiddle for you to understand:
And my code:
html
<div class="slider">
<img src="http://k40.kn3.net/4/2/2/9/D/8/593.jpg" alt="slider" />
<img src="http://k32.kn3.net/1/0/C/9/6/1/D4F.jpg" alt="slider" />
</div>
css
.slider{
margin: auto;
width: 90%;
text-align: center;
}
.slider img{
width: 100%;
max-width: 600px;
}