Having trouble creating a responsive fixed navbar with logo and navlinks on both sides. I removed all Bootstrap elements from the code I'm sharing here, can someone help me out?
I need a solution using Bootstrap to ensure everything is responsive. Thank you.
.nav-bar {
display: flex;
justify-content: space-between;
position: fixed;
align-items: center;
}
.header-top {
height: 100px;
display: flex;
justify-content: space-between;
padding: 15px 30px 0 10px;
}
.nav-links {
display: flex;
right: 20px;
}
.header-nav-blocks {
height: 50px;
margin-left: 40px;
display: flex;
justify-content: center;
align-items: center;
}
.header-nav-button {
display: flex;
flex-direction: column;
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0c6e6363787f787e6d7c4c39223e223f">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<header>
<div class="header-top">
<nav class="nav-bar">
<img src="https://via.placeholder.com/50" alt="logo oc" />
<ul class="nav-links">
<li class="header-nav-blocks">
<a href="#A" class="navlinks">A</a>
</li>
<li class="header-nav-blocks">
<a href="#B" class="navlinks">B</a>
</li>
<li class="header-nav-blocks">
<a href="#C" class="navlinks">C</a>
</li>
<li class="header-nav-blocks">
<a href="#D" class="navlinks">D</a>
</li>
<li class="header-nav-button">
<a href="" class="button-link">Blog</a>
</li>
</ul>
</nav>
</div>
</header>