The menu appears as a full-screen background, but the actual menu items are of fixed width. The last item in the menu is displayed in a different color.
<div class="nav">
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li class="last"><a href="#">Last Link</a></li>
</ul>
</div>
CSS:
.nav {
width: 100%;
background-color: #183650;
}
.nav ul {
display: flex;
justify-content: center;
max-width: 500px;
padding: 0;
text-align: center;
margin: 0 auto;
}
.nav ul li {
list-style: none;
margin: 0 10px;
}
.nav ul li a {
color: #FFF;
text-decoration: none;
text-transform: uppercase;
padding: 10px 0;
display: block;
}
.nav ul li.last a {
background-color: #20bef2;
}
https://jsfiddle.net/Lnpysxze/14/
Here's how it currently appears: https://i.sstatic.net/tNVWA.png
However, the light blue color should fill the remaining space to the right, beyond the fixed-width menu, like this: https://i.sstatic.net/ZtIvG.png
The button width remains the same, and the additional space filled with light blue should not be part of the button.