I am trying to align a image text and subtext in a div. I am able to achieve but i don't know how to position the image exactly to the title, now the image is starting from the subtext and image height increases when text content is more.
What i am trying to achieve is left side image vertically start align with title and below that text and the image should not stretch on height.
.card-wrapper {
flex-direction: row;
box-sizing: border-box;
align-items: center;
justify-content: center;
display: flex;
}
.img-wrapper {
box-sizing: border-box;
width: 100%;
padding-right: 24px;
}
.img-wrapper>img {
width: 100%;
height: 80px;
}
.text {
box-sizing: border-box;
flex: 1 1 auto;
}
.text>p {
margin: 0;
}
<div className="card-container">
<div class="card-wrapper">
<div class="img-wrapper">
<img src="https://i.picsum.photos/id/460/200/300.jpg?hmac=ZPCe3djambX5E8sSU4PD0iOiqnK-oWfilPTycsWWvCM" />
</div>
<div class="text">
<strong class="text-title">Title</strong>
<p class="text-description">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industry's standard dummy text ever since the 1500s,
</p>
</div>
</div>
</div>