How to make an image fit proportionally in flexbox item or in sections – SitePoint

Growly

April 14, 2022, 5:38pm
#1

I watched A pair of picture code tutorials and nonetheless can’t decide it out! yay.

…….

npressfetimg-1302.png


Growly

April 14, 2022, 5:38pm
#1

I watched A pair of picture code tutorials and nonetheless can’t decide it out! yay.


SamA74

April 14, 2022, 5:51pm
#2

I’m not completely clear on what You are asking, however my biggest guess is that object-match is the property You are Looking for.
Or On this case the place They’re backgspherical pictures backgspherical-measurement.

Additionally notice that We will’t see The footage in your pen, You will want a full absolute url.

1 Like

The foreheadser will take An picture and current it at full measurement till you give it courses To not, which you didn’t Afacet from The primary area.

Do You’d like to add the backgspherical-measurement to the .Managed class (Because you’re using it in all 4 areaes), then The footage will fill the areaes. Is that The important look you’re going for (substituted random pics Wiskinny the code pen)?

1 Like


<span merchandiseprop="…….

Source: https://www.sitepoint.com/community/t/how-to-make-an-image-fit-proportionally-in-flexbox-item-or-in-sections/385308/

Leave a Reply

Your email address will not be published. Required fields are marked *