1

I have this code:

.fbox {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.box {
  width: 200px;
  height: 200px;
  margin: 15px;
  border: 1px solid black;
  background-color: gray;
}
<div class="fbox">
  <div class="box"></div>
  <div class="box"></div>
  <div class="box"></div>
</div>

And instead of getting this:

expected result

I get this:

actual result

As far as it's stated on caniuse and other relevant sources, the display: flex and flex-direction: row should be supported by Internet Explorer 11.

The version I tested with is: IE 11.1.18343.0

Does anybody have idea why?

Michael Benjamin
  • 265,915
  • 79
  • 461
  • 583
andreihondrari
  • 5,441
  • 5
  • 25
  • 54

1 Answers1

1

The layout works fine on IE11.

However, you may need to check the browser's compatibility setting.

Press F12, go to the "Emulation" tab, and check that "Document Mode" is set to IE11.

Michael Benjamin
  • 265,915
  • 79
  • 461
  • 583