Почему центр flex растягивает мое изображение, а не центрирует его?CSS3 flex - растягивает изображение, а не центрирует его?
CSS:
.flex-centre {
display: flex;
justify-content: center;
flex-direction: column;
text-align: center;
height: 100%;
width: 100%;
}
HTML:
<div style="height: 400px; width: 400px; background: #ccc">
<div class="flex-centre">
<img class="img-responsive" src="http://placekitten.com/g/200/200" alt="">
</div>
</div>
Результат:
Любые идеи?