-1

This is weird, I tested on many device (all of them Chrome) its all okay when it come to iPhone I got weird result on img tag, there is extra height that I can't find it.

This is my HTML that containing img tag:

<div class="row align-content-center" id="tips-input">
     <img class="col-5 img-fluid" src="images/tips-image.svg"/>
     <div class="col-7">
          Photo Code bisa ditemukan di dalam foto yang telah ter-print
     </div>
</div>

And this is coresponding CSS:

 #input-foto #input-box #tips-input img {height: auto;}

Here is screenshot on my device:
Here is screenshot on my device

Heres is screenshot on iphone device:
Heres is screenshot on iphone device

Dharman
  • 30,962
  • 25
  • 85
  • 135

1 Answers1

0

Okay, apparently there is flex box bug on safari browser.

Here is the answer on related topic.

Image stretching in flexbox in Safari

  • Why in my case the image not stretching, its because i use svg image so its maintain object shape, but compromise the padding of image, so its appear as extra height problem, the actual problem is flex box on parent of img element – Kevin Juniawan Jan 28 '20 at 04:21