I have a responsive website. My images exist in a div window I called "preview" and they are not supposed to exceed the height of the window. It seems to be working for certain images, and I can't figure out why it won't work for all of them.
Probably not necessary, but this is my code for the div.
.preview {
max-height: 100%;
max-width: 100%;
}
Here's an example of an image that's working.
<img class="preview" src="assets/works/design/posters/spring2016.jpg">
This one isn't working. It is taller than the div height.
<img class="preview" src="assets/works/reindeer.jpg">
Here's my site: alexjberger.com
Does anyone have any insight? I appreciate it.