<nav>
<ul>
<li>nav01</li>
<li>nav02</li>
<li>nav03</li>
<li>nav04</li>
<li>nav05</li>
</ul>
</nav>
* {
box-sizing: border-box;
}
body {
min-height: 100vh;
margin: 0;
padding: 10px;
display: flex;
justify-content: center;
align-items: center;
}
li:not(:last-of-type) {
border-right: 1px solid #fff;
}
nav ul {
display: table;
table-layout: fixed;
}
nav ul li {
display: table-cell;
color: #fff;
background: #ef88a7;
padding: 10px 30px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.