I am working on a mobile version of a website. On a certain page you have three images on the left and when you click on it, you will see the image in big on the right.
When you resize the window, the three images on the left will become bigger in resolution. What I want to accomplish is that the image on the right should have the same height as the three on the left together.
So the blue and the green divs should have the same height when you resize the window.
You can find my code here or below
<div id="outer">
<div id="inner1">
<ul>
<li>
<img style="-webkit-user-select: none" src="http://placekitten.com/50/50" />
</li>
<li>
<img style="-webkit-user-select: none" src="http://placekitten.com/50/50" />
</li>
<li>
<img style="-webkit-user-select: none" src="http://placekitten.com/50/50" />
</li>
</ul>
</div>
<div id="inner2">
<img style="-webkit-user-select: none" src="http://placekitten.com/50/50" />
</div>
<div style="clear: both;"></div>
</div>
Styles
#outer{
border: 1px solid red;
width: 100%;
}
#inner1{
border: 1px solid blue;
width: 30%;
float: left;
margin-right: 20px;
}
#inner1 img{
width: 100%;
}
#inner2{
border: 1px solid green;
width: 100%;
height: 100%
}
ul{
list-style-type: none;
}
Thank you!!