@abanZaman125
Posted
-
In the two divs that make up the card, I use the
flex: 1
property to make them equal in size, and they can adjust size equally when I change themax-width
on the entire card. The problem is that the flex property only adjusts for content, not margin or padding, so if you check my code, the computed size of the text container is bigger than the image. -
I am designing it with the flex layout, so no div is needed then 😊. EDIT: It's not working - the image is way bigger than the text container but it is adjusting in size...
-
Could you show me the code for this? Because I never used SVGs before and it seems there are more attributes (like path, fill, and XMLNS) than the image element.
-
Is using
width: 100%
not better than usingheight: 100%
andobject-fit:cover
together?
Additional notes:
- I will do that. I just put 375px because that was the mobile design in the style-guide.
- Will the code for the
<picture>
element be written like this then?
<picture>
<source media="(min-width: 600px)" srcset="images/image-product-desktop.jpg">
<img class="perfume-image" src="images/image-product-mobile.jpg" alt="Alt text.">
</picture>
THANK YOU :D:D:D:D
Aban