I need the 'a' element to be positioned on the left side of the page and the 'ul' element to be centered.
I prefer not to rely on a library or use float: left
. Also, applying display: inline;
to the ul
element is not producing the desired result, although it works with other elements.
<nav class="nav">
<a href="">Brand</a>
<ul>
<li><a [routerLink]="['/hot']">Hot</a></li>
<li><a [routerLink]="['/trend']">Trend</a></li>
<li><a [routerLink]="['/new']">New</a></li>
</ul>
</nav>