Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE11 not respecting height: auto

In Internet Explorer 11, at https://www.superiorit.com.au, the "s control" icon at top right displays with height: 94px;

enter image description here

as specified in the img tag:

<img src="https://www.superiorit.com.au/wp-content/uploads/2017/11/new_connect_logo_web_normal.png" width="375" height="94" srcset="https://www.superiorit.com.au/wp-content/uploads/2017/11/new_connect_logo_web_normal.png 375w, https://www.superiorit.com.au/wp-content/uploads/2017/11/new_connect_logo_web_normal-300x75.png 300w" sizes="(max-width: 375px) 100vw, 375px" class="so-widget-image">

but the CSS height: auto; in:

.so-widget-sow-image-default-eef982a7180b .sow-image-container .so-widget-image {
    display: inline-block;
    max-width: 100%;
    width: inherit;
    height: auto;
}

is not being respected by IE11. Chrome respects this CSS and reduces the height of the img to 25px tall:

enter image description here

How do I make IE11 display the image @ 25px tall?

like image 201
Steve Avatar asked Nov 20 '17 08:11

Steve


3 Answers

Remove the display: inline-block style from #siteorigin-panels-builder-9 (the container .widget for the topmost header elements.

This is interfering with the somewhat-fragile layout that combines float, flexbox, and calc() widths.

like image 123
Cy Rossignol Avatar answered Sep 20 '22 02:09

Cy Rossignol


remove width="375" height="94" from img tag

<img src="https://www.superiorit.com.au/wp-content/uploads/2017/11/new_connect_logo_web_normal.png" srcset="https://www.superiorit.com.au/wp-content/uploads/2017/11/new_connect_logo_web_normal.png 375w, https://www.superiorit.com.au/wp-content/uploads/2017/11/new_connect_logo_web_normal-300x75.png 300w" sizes="(max-width: 375px) 100vw, 375px" class="so-widget-image">

and make width: 100%

.so-widget-sow-image-default-eef982a7180b .sow-image-container .so-widget-image {
    display: inline-block;
    max-width: 100%;
    width: 100%;
    height: auto;
}
like image 36
satyajit rout Avatar answered Sep 21 '22 02:09

satyajit rout


Add max-height:30px

.so-widget-sow-image-default-eef982a7180b .sow-image-container .so-widget-image {
  display: inline-block;
  height: auto;
  max-width: 100%;
  width: inherit;
  max-height:30px
}
like image 43
Umesh Gupta Avatar answered Sep 19 '22 02:09

Umesh Gupta