In IE 11, when elements of an element are not positioned properly if they have a maximum width property. However, this example works in Chrome and Firefox.
Js bin
.container { display: flex; justify-content: center; align-items: center; background-color: blue; width: 100%; } .red { background-color: red; flex-grow: 1; display: flex; max-width: 200px; }
<div class="container"> <div class="red">non centered box</div> </div>
html css internet-explorer flexbox css3
Timur carpeev
source share