I have a menu that looks like this
<div class="page">
<nav class="page__menu menu">
<ul class="menu__list r-list">
<li class="menu__group"><a href="" class="menu__link r-link text-underlined">Option1</a></li>
<li class="menu__group"><a href="" class="menu__link r-link text-underlined">Option2</a></li>
<li class="menu__group"><a href="" class="menu__link r-link text-underlined">Option3</a></li>
<li class="menu__group"><a href="" class="menu__link r-link text-underlined">Option4</a></li>
<li class="menu__group"><a href="" class="menu__link r-link text-underlined">Logout</a></li>
</ul>
</nav>
</div>
I want the first 4 options to be centred and the final one to be on the right side of the navbar. I have tried applying 'margin-right:auto' and 'margin-left:auto' to the final div but it's still not working. Is there a way of doing this without creating 3 different flex boxes, the left one blank?