i'm making an navigation menu that i want to position on the top right of my page. I want the items to be aligned horizontally, but i cant seem to get it working. This is driving me absolutely insane because i cant figure out what i'm doing wrong. I would really appreciate some help.
HTML:
<div v-if="items" class="main-nav">
<nav>
<ul>
<li v-editable="item" :key="index" v-for="(item, index) in items" :class="{ highlighted: item.highlighted }">
<LinkType class="nav-link" :link="item.link" :linkText="item.name">{{ item.name }}</LinkType>
</li>
</ul>
</nav>
</div>
CSS:
.main-nav
{
width: auto;
height: auto;
position: absolute;
top: 0;
right: 0;
float: right;
transform: translateX(0%);
background: #424242;
> ul
{
> li
{
display: inline-block;
.nav-link{
}
}
}
}