I'm trying to make a navigation bar with the content on the right of the page. This worked until I added position:fixed in CSS. After I added position:fixed, the content got relocated to the left of the page. Can someone tell me why this happened?
.header {
position: fixed;
}
<div class="header">
<ul class="nav nav-pills justify-content-end">
<li class="active"><a data-toggle="pill" class="nav-link active" href="#">About</a></li>
<li> <a data-toggle="pill" class="nav-link" href="#">Portfolio</a></li>
<li><a data-toggle="pill" class="nav-link" href="#">Contact</a></li>
</ul>
</div>