I have read a lot of question here about combining the different overflow values. However, I couldn't find a solution for my problem, which is the following.
I have an image, which is larger than its container. So, I want to make it visible in x direction and scroll (or auto) in the y direction.
One possible solution would be to increase the width of #inner and make it equal to the image width, but I am not allowed to do that. I tried to insert a wrapper (#outter) but it didn't work.
Does anyone want how to solve the problem?
#outter {
width: 200px;
height: 200px;
overflow-y: scroll;
}
#inner {
overflow-x: visible;
width: 200px;
height: 200px;
}
img {
width: 400px;
height: 400px
}
<div id="outter">
<div id="inner">
<img src="http://www.w3schools.com/images/w3schools_green.jpg" alt="W3Schools.com">
</div>
</div>