I would like to have three li
elements with equal width. I used calc
, however the code does not work.
width:calc(100%/3);
display:inline-block;
Snippet:
ul {
position: fixed;
bottom: 25px;
left: 5%;
width: 90%;
}
ul li {
width: calc(100%/3);
display: inline-block;
}
ul li:nth-child(2) {
text-align: center;
}
ul li:nth-child(3) {
text-align: right;
}
<ul>
<li><a href="">Phone</a></li>
<li><a href="">Imprint</a></li>
<li><a href="">Email</a></li>
</ul>