I am trying to do few items on both side by using css flexbox but somehow I just can't stick them (div) side by side.
PS: I can't set number of elements because I want it to be flexible as in I can add in or remove and it won't affect my css.
I want it to be like this. Sample of picture:
I've tried this. But you can see from the output that there is gap between div on the left side.
.bottom{
position:fixed;
bottom:0;
}
.wrapper {
width: 500px;
border: solid 1px #000;
display: flex;
justify-content: flex-end;
}
.item-left {
width: 20%;
border: solid 1px #000;
margin-right:auto;
}
.item-right {
width: 20%;
border: solid 1px #000;
height: 200px;
}
<div id="bottom" class="bottom">
<div class="wrapper">
<a class="item item-left">
<div class="item-label">Label</div>
</a>
<a class="item item-left">
<div class="item-label">Label</div>
</a>
<a class="item item-right">
<div class="item-label">Label</div>
</a>
<a class="item item-right">
<div class="item-label">Label</div>
</a>
</div>
</div>