I have a code where the image height is larger than the containing div, which is intentional. However, I am facing an issue where the text div at the bottom of the image is not positioned correctly. Is there a solution to this problem? I also attempted using margin-bottom on feature_details.
.feature_details {
display: inline-block;
width: 40%;
text-align: left;
margin-bottom: 4rem;
}
.feature_display {
display: inline-block;
width: 50%;
}
.feature_display__img {
width: 100%;
height: auto;
}
<div class="feature_section__feature_left">
<div class="feature_details">
<h3 class="feature_name">Reviews that truly matter</h3>
<div class="feature_info">
<p>
Insolvers allows for easy creation of rich, high-quality content with its built-in editor.
</p>
<p>
You can add images, gifs, and media - craft, experiment, and collaborate with your colleagues before scheduling.
</p>
</div>
</div>
<div class="feature_display">
<div class="feature_display__img">
<img src="https://i.pinimg.com/564x/e9/29/1c/e9291cc39e820cd4afc6e58618dfc9e0.jpg" alt="Feature display" />
</div>
</div>
</div>