Recently, I designed a card layout as shown below:
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" />
<div class="card">
<div class="card-body">
<div class="container mr-0 pr-0">
<div class="row">
<div class="col-2">
<img width="150" heigth="150" src="https://widgetwhats.com/app/uploads/2019/11/free-profile-photo-whatsapp-4.png" />
</div>
<div class="col-10 text-left pr-0">
<span style="font-weight: lighter; font-size:22px;">USERNAME</span>
<div>
<span class="mr-5" style="font-weight: lighter; font-size: 12px;">100 POSTS</span>
<span class="m-5" style="font-weight: lighter; font-size: 12px;">100 FOLLOWERS</span>
<span class="m-5" style="font-weight: lighter; font-size: 12px;">100 FOLLOWING</span>
<span class="m-5" style="font-weight: lighter; font-size: 12px;">Phone: 100</span>
<span class="m-5" style="font-weight: lighter; font-size: 12px;">Email: 100</span>
</div>
<div class="mb-1 mt-1">
<span style="font-weight: bold; font-size: 12px;">More Text</span>
</div>
<div>
<span style="font-weight: normal; font-size: 12px; -webkit-line-clamp: 3; text-overflow: ellipsis; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus molestie at urna id faucibus. Proin facilisis lectus ac luctus gravida. Phasellus posuere nec mauris ac hendrerit. Curabitur venenatis et augue id dignissim. Curabitur vitae nunc dignissim, ultricies lorem quis, malesuada odio. In molestie metus nec ligula finibus, sed placerat odio ornare. In eu faucibus elit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum efficitur turpis eu iaculis maximus. Proin pharetra congue risus quis rhoncus.</span>
</div>
</div>
<div class="col-12 pr-0 mt-3">
<button type="button" class="btn btn-primary float-right mr-2">Extract</button>
</div>
</div>
</div>
</div>
</div>
I'm encountering an issue where, if the window size decreases below 1920 x 1080p, the div elements don't stack properly until reaching the end.
The text starts overlapping with the image and other content. How can I ensure proper responsiveness using Bootstrap?
While the design appears fine in fullscreen mode, shrinking the window leads to text overlap issues. What could be causing this? And how can I make it responsive with Bootstrap?