I use bootstrap v4 maps in my layout and, unfortunately, the images are distorted in Internet Explorer 11. IE seems to completely ignore the height: auto attribute set by the img-fluid class. Do I need to apply custom height to map images? However, maps render fine in Chrome and Firefox. Interestingly, if I change the engine to IE 10 (in the F12 console), the problem will disappear.
Since img-fluid images that are not wrapped in cards are displayed in accordance with their original ratio, I think the problem corresponds to the location of the card.
<div class="container"> <div class="row"> <div class="col-md-4"> <div class="card"> <img class="card-img-top img-fluid" src="img/1.jpg" alt="Step 1" width="600" height="400" /> <div class="card-block"> <h3 class="card-title">Step 1</h3> <p class="card-text">Text 1</p> </div> </div> </div> <div class="col-md-4"> <div class="card"> <img class="card-img-top img-fluid" src="img/2.jpg" alt="Step 2" width="600" height="400" /> <div class="card-block"> <h3 class="card-title">Step 2</h3> <p class="card-text">Text 2</p> </div> </div> </div> <div class="col-md-4"> <div class="card"> <img class="card-img-top img-fluid" src="img/3.jpg" alt="Step 3" width="600" height="400" /> <div class="card-block"> <h3 class="card-title">Step 3</h3> <p class="card-text">Text 3</p> </div> </div> </div> </div> </div>
source share