Display flex is not working in IE

Maria Jeysingh Anbu

I'm trying to do the center alignment for the image in <div class="product-image-area"> using display:flex;

That is working fine on Edge, Firefox and Chrome but not on IE.

CSS:

.horizontal {
    display: flex;
    justify-content: center;
}

.vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

Fiddle Here: JS Fiddle

Result in Edge,chrome and Firefox enter image description here

Result in IE

enter image description here

Maria Jeysingh Anbu

Removed img-responsive CSS class from img and added vertical

.horizontal {
  height: 150px;
  line-height: 150px;
  text-align: center;
}

.vertical {
  vertical-align: middle;
  max-height: 150px;
  max-width: 100%;
}

updated Fiddle Here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

display:flex not working in Chrome

From Dev

Display Flex not working on Firefox but Chrome

From Dev

is it possible display: inline-flex in IE 9?

From Dev

Flex flow not working in IE11

From Dev

Display:none not working in IE 9

From Dev

Display:none not working in IE 9

From Dev

div height:100% and display:flex not working in Chrome

From Dev

Safari display flex not working when elements are 25%

From Dev

div height:100% and display:flex not working in Chrome

From Dev

Does IE9 not support display: inline-flex at all?

From Dev

sticky footer display table not working on Firefox / IE

From Dev

Flexbox: flex-shrink not working in IE11 and below

From Dev

display:table & display:table-cell not working in IE9

From Dev

display:table & display:table-cell not working in IE9

From Dev

CSS display:flex align-items:baseline not working in Firefox

From Dev

Can't get display:block element (instead a display:flex element) to contain it's child in IE11

From Dev

Div display:initial not working as intended in ie10 and chrome 29

From Dev

.table-cell and .table display not working well on IE

From Dev

JqGrid free display not working in chrome as it does nicely in IE 11

From Dev

Word-break / word-wrap inside display flex cell IE10

From Dev

Word-break / word-wrap inside display flex cell IE10

From Dev

Flex box fix for IE?

From Dev

Display:flex not working when added into my css no matter what I try

From Dev

Is this a correct use for display:flex?

From Dev

Display table on flex item

From Dev

Display:Flex not supported in Safari?

From Dev

Display flex align to right

From Dev

Error with display: flex on safari?

From Dev

Wrap boxes in display: flex

Related Related

HotTag

Archive