My goal is to place a link in each corner (left, top, right, bottom) using Flexbox.
I attempted using top: 0
or adjusting the flex-direction
to column
.
.container {
position: relative;
}
.top {
display: flex;
justify-content: space-between;
}
.bottom {
display: flex;
justify-content: space-between;
flex-direction: row;
}
<div class="container">
<div class="top">
<a href="one/">ONE</a>
<a href="two/">TWO</a>
</div>
<div class="bottom">
<a href="three/">THREE</a>
<a href="four/">FOUR</a>
</div>
</div>
I expected to achieve one link in each corner similar to this screenshot:
https://i.sstatic.net/Bl7sz.png
However, I ended up with this instead: