Flexbox has this behavior when it stretches images to their natural height. In other (more specific) words, if I have a flexbox container with a child image and I resize the width of this image, the height does not change at all and the image is stretched.
<div> <img src="https://loremflickr.com/400/300" > <h4>Appify</h4> <p> some text </p> </div>
And this style sheet
div { display: flex; flex-wrap: wrap; } img{ width: 50% }
I added this code to demonstrate what I mean. What causes this?
html css flexbox
sjbuysse Jun 03 '16 at 8:33 2016-06-03 08:33
source share