I have a simple page - html, body, .container, and img all have height 100%. html & body have margin & padding of 0px.
I have a long img that gets squeezed into the window (due to height: 100%). But there is a vertical scrollbar on the right. I can't figure out why.
I can force-hide it with overflow-y: hidden
, but I'd like to know why it is there. (Shows up in Chrome, Safari, and Firefox, so it's not a browser bug.)
html,
body {
height: 100%;
margin: 0px;
padding: 0px;
border: 0px;
}
.container {
height: 100%;
}
img {
height: 100%;
}
<div class="container">
<img src="https://i2.wp.com/emilcarlsen.org/wp-content/uploads/sites/13/2014/12/20141120_130615.jpg" alt="">
</div>