Answers for "how to make an image take up the whole bootstrap card"

C#
7

bootstrap card change image

.card-img-top {
    width: 100%;
    height: 15vw;
    object-fit: cover;
}
Posted by: Guest on March-09-2020
0

image card with text bootstrap

<div class="card" style="width: 18rem;">
  <img src="..." class="card-img-top" alt="...">
  <div class="card-body">
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
  </div>
</div>
Posted by: Guest on July-27-2021

Code answers related to "how to make an image take up the whole bootstrap card"

C# Answers by Framework

Browse Popular Code Answers by Language