CSS Flex property align-content doesn't work in container with inline height declaration. It works fine as soon as I move the inline height to the separate CSS file class. Why is that? Chrome and Opera behaves the same. The items should move vertically but stay at the top of the container. Is my inline declaration a wrong CSS? Code attached.
.father {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-content: flex-end;
align-items: center;
justify-content: space-around;
}
.child {
border: 1px solid #fff;
padding: 5px;
color: white;
}
.bx-1 {
background: #e51400;
}
.bx-2 {
background: #fa6800;
}
.bx-3 {
background: #f0a30a;
}
.bx-4 {
background: #e3c800;
}
.bx-5 {
background: #a4c400;
}
.bx-6 {
background: #60a917;
}
.bx-7 {
background: #00aba9;
}
.bx-8 {
background: #1ba1e2;
}
.bx-9 {
background: #aa00ff;
}
<div class="" style="width: 100%; height: 300px; background-color: darkorange">
<div class="father">
<div class="child bx-1">Bella</div>
<div class="child bx-2">Bella</div>
<div class="child bx-3">Bella</div>
<div class="child bx-4">Bella</div>
<div class="child bx-5" style="height: 80px;">Bella</div>
<div class="child bx-6">Bella</div>
<div class="child bx-7">Bella</div>
<div class="child bx-8">Bella</div>
<div class="child bx-9">Bella</div>
<div class="child bx-10">Bella</div>
</div>
</div>