Bootstrap Card Image Width Code Example


Example 1: bootstrap card change image

.card-img-top {     width: 100%;     height: 15vw;     object-fit: cover; }

Example 2: bootstrap + cards

<div class="card" style="width: 18rem;">   <img class="card-img-top" src="..." alt="Card image cap">   <div class="card-body">     <h5 class="card-title">Card title</h5>     <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>     <a href="#" class="btn btn-primary">Go somewhere</a>   </div> </div>

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?