I am in the process of creating a bootstrap website and my initial focus is on designing the mobile version. I am aiming to align images (positioned on the left) with text (located on the right). So far, I have successfully achieved this layout using square images with a 1:1 aspect ratio. However, when I attempt to use images of different sizes, the alignment becomes distorted. Below is an example of the code I am currently working with:
<div class="container">
<div class="row">
<div class="col-xs-4">
<img src="image.jpg" class="img-responsive">
</div>
<div class="col-xs-8">
<ul class="list-unstyled invinfo">
<li class="heading"><h5>Main title of page</h5></li>
<li>Some details about the page</li>
<li>More details</li>
</ul>
</div>
</div>
</div>
The design I am trying to achieve can best be described as resembling Amazon's mobile app, particularly the layout displayed for search results.