I am working on a website with the following basic layout:
<nav>
Nav content here
</nav>
<router-outlet></router-outlet>
I have a component that is being displayed in the router outlet, but I want it to appear on top of the Nav content. I have tried the following code:
.album-select-bar {
z-index: 100;
position: absolute;
top: 0px;
}
<app-album-select-bar class="album-select-bar"></app-album-select-bar>
However, the element is being positioned just below the Nav content. How can I ensure that the content of the router-outlet appears on top of the Nav content in Angular2?