There is a 400px wide picture and a height of 1500px, + there is a div with dimensions of 400x500, you need to make it so that the picture is displayed only inside the diva and that it can be scrolled vertically (without the scrolling slider is desirable), how to implement it?

1 answer 1

Decided this way:

.container { margin: 0 auto; width: 400px; height: 500px; overflow: hidden; } .inner { width: 420px; height: 500px; overflow-y: scroll; } img { width: 400px;}