I have five li text elements inside a flex container with these properties
.contentwrapper{
position: relative;
width: 100%;
padding-left: calc(((((100vw - (13rem))/ 12) * 2) + (1rem * 1)) + 1.5rem);
padding-right: calc(((((100vw - (13rem))/ 12) * 2) + (1rem * 1)) + 1.5rem - .1px);
margin: 0 auto;
height: 100%;
}
ul.nav{
position: relative;
padding-top: 100px;
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-between;
list-style: none;
}
li.navitem{
position: relative;
display: inline-block;
cursor: default;
font-size: 1.2em;
text-transform: uppercase;
}
<div class="contentwrapper">
<ul class="nav">
<li class="navitem active">Online</li>
<li class="navitem">In person</li>
<li class="navitem">By phone</li>
<li class="navitem">Mobile App</li>
<li class="navitem">Inmate</li>
</ul>
</div>
The issue is that the li elements don't go to the edges of the container for some reason, even though there are no paddings or margins. What am I doing wrong and how can this be achieved using Flexbox(or not).? Help is much appreciated.