I'm not sure exactly how to phrase what I need, but basically I have three different images that I'd like to remain the same ratio, but they aren't the same size. I guess it looks like this:
|------| |----------| |--|
| Img1 | | Img2 | | 3|
|------| |----------| |--|
And have them scale responsively. Here's the HTML and CSS:
@media all and (max-width: 775px) {
.aboutbody, .sidebar {
display: block;
}
.sidebar {
width: 86%;
margin-left: 7%;
height: 300px;
}
.sidebarpics {
height: 200px;
width: auto;
display: inline-block;
}
}
<div class="sidebar">
<img class="sidebarpics" img src="assets/family1.jpg">
<img class="sidebarpics" src="assets/speaking1.jpg">
<img class="sidebarpics" src="assets/family2.jpg">
</div>
Here's the website that I'm updating in real time. http://hanksmith.com/about.php To understand you need to shrink the browser window until the three pictures at the side move to the top.
Try vertical alignment top . ignore playing with height, play with width in percentage.