I am trying to create a square div within a flexbox. Here is the code I have used:
.outer {
display: flex;
width: 100%;
background: blue;
}
.inner {
width: 50%;
background: yellow;
padding-bottom: 50%;
}
<div class="outer">
<div class="inner">
<a>hehe</a>
</div>
</div>
While this setup works well in Chrome, I am facing an issue in Firefox where the parent container shrinks to just one line.
Does anyone know how to resolve this problem specifically for Firefox version 44?
You can also check out the code on https://jsbin.com/lakoxi/edit?html,css