Utilizing the Bootstrap card to showcase a list of videos, but encountering an issue with the YouTube video thumbnail (hqdefault.jpg) showing a black strip on top and bottom of the image that I wish to conceal for a better appearance.
I attempted using .card-img-top{position:absolute; top:-30px; } but it caused a disruption to the overall design.
Click here for more details.
<div class="container py-5">
<div class="row pb-5 mb-4">
<div class="col-lg-4 col-md-6 mb-4 mb-lg-0">
<!-- Card-->
<div class="card shadow-sm border-0 rounded">
<div class="card-body p-0"><img src="https://img.youtube.com/vi/Aymrnzianf0/hqdefault.jpg" alt="" class="w-100 card-img-top">
<div class="p-4">
<h5 class="mb-0">Mark Rockwell</h5>
<p class="small text-muted">CEO - Consultant</p>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4 mb-lg-0">
<!-- Card-->
<div class="card shadow-sm border-0 rounded">
<div class="card-body p-0"><img src="https://img.youtube.com/vi/EMVPpPE_Bx4/hqdefault.jpg" alt="" class="w-100 card-img-top">
<div class="p-4">
<h5 class="mb-0">Mark Rockwell</h5>
<p class="small text-muted">CEO - Consultant</p>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4 mb-lg-0">
<!-- Card-->
<div class="card shadow-sm border-0 rounded">
<div class="card-body p-0"><img src="https://img.youtube.com/vi/22BXPLkyocw/hqdefault.jpg" alt="" class="w-100 card-img-top">
<div class="p-4">
<h5 class="mb-0">Mark Rockwell</h5>
<p class="small text-muted">CEO - Consultant</p>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4 mb-lg-0">
<!-- Card-->
<div class="card shadow-sm border-0 rounded">
<div class="card-body p-0"><img src="https://img.youtube.com/vi/Aymrnzianf0/hqdefault.jpg" alt="" class="w-100 card-img-top">
<div class="p-4">
<h5 class="mb-0">Mark Rockwell</h5>
<p class="small text-muted">CEO - Consultant</p>
</div>
</div>
</div>
</div>
</div>
</div>