css - Element is not horizontally centered in IE11 with Flexbox when parent has flex-flow: column wrap; -
.thing { background-color: tomato; max-width: 300px; padding: 30px; display: flex; margin: 0 auto; flex-flow: column wrap; } .not-centered { max-width: 150px; background-color: #fefefe; margin: 0 auto; }
<div class="thing"> <div class="not-centered"> im not centeredi in ie11 </div> </div>
i supposed work because if max-width
, margin: 0 auto
set. can see, not horizontally centered because parent .thing
has flex-flow: column wrap
.
any ideas fix in setup?
p.s. works in chrome/ff
wrapping .not-centered
in div
block
display resolves issue in ie11
Comments
Post a Comment