I'm trying to add some cards from bootstrap to a website to display images of the products with their prices and the option to add then to the cart but since the image in this card are being retrieved from another website, when I tried to load my page the images are too big and the cards don't resize automatically with the browser window so it shows one on top of another:
Asked
Active
Viewed 233 times
0
-
Welcome at SO. Best way to manipulate the frontend is by using CSS and/or Javascript generally spoken.. – JSRB Jun 02 '20 at 20:03
-
i don't how to use both language at the same time not even mentioning i only know python lol. – Joshua Montenegro Jun 02 '20 at 20:18
1 Answers
0
you can add these properties to the image of the card.
.card_name img {
height: 300px!important;
background-clip: padding-box;
object-fit: cover;
}

ngawang13
- 663
- 1
- 5
- 12