I think you should take a look at some of these solutions and see if one of them fits your case.
- CSS: how to get scrollbars for div inside container of fixed height
- OR
- divs with scrollbars in div with fixed size
You should try changing the value of height
in your styling to actual number instead of a percentage, and see if that has any effect on presentation. Solutions above have exact values for height
and seem to work that way.
And here is a solution that deals with image in div specifically:
- Scroll full image inside div