I have encountered an issue with a vertical slider that I've been developing. The problem arises when there is a change in the display resolution, causing the thumbnails on the right to have a different height than the image on the left. To better understand the issue, I have created a codepen which can be found here:
https://codepen.io/fmalmeida/pen/ZOOagX
.container2 {
background-color: grey;
}
.container1 {
background-color: magenta;
position: absolute;
max-height: 609px;
overflow: hidden;
}
.lSection {
background-color: blue;
position: relative;
max-height: 609px;
}
.rSection {
background-color: green;
position: relative;
max-height: 609px;
}
.lSection>* {
min-width: 100%;
}
.rSection>ul {
max-height: 609px;
}
.rSection>ul img {
max-height: 150px;
}
li {
padding-bottom: 2px;
list-style: none;
}
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet" />
<div class="container2 row-fluid">
<div class="container1 span10">
<div class="lSection span9">
<img class="contain" src="http://mw2.google.com/mw-panoramio/photos/medium/58122377.jpg">
</div>
<div class="rSection span3">
<ul>
<li>
<a>
<img src="http://cdn.olhares.pt/client/files/foto/big/330/3301699.jpg">
</a>
</li>
<li>
<a>
<img src="http://cdn.olhares.pt/client/files/foto/big/330/3301699.jpg">
</a>
</li>
<li>
<a>
<img src="http://cdn.olhares.pt/client/files/foto/big/330/3301699.jpg">
</a>
</li>
<li>
<a>
<img src="http://cdn.olhares.pt/client/files/foto/big/330/3301699.jpg">
</a>
</li>
</ul>
</div>
</div>
</div>
One way to test this issue is by resizing the browser window. At higher resolutions, the layout seems fine due to the defined maximum height. However, upon resizing the window to lower resolutions, the problem becomes apparent.
If anyone has any suggestions on how to resize both the main image and thumbnails simultaneously while maintaining the same height, it would be greatly appreciated.
Thank you.