Attempting to create a navbar with elements aligned to the left, right, and center. However, struggling with centering the elements on the screen. Can anyone assist in identifying my mistake?
Additionally, seeking a way to keep the navbar fixed so it does not disappear when scrolling. Any suggestions would be appreciated!
Thank you in advance!
View My Code DEMO
HTML
<nav class="navbar">
<ul class="nav">
<li class="nav-item">
<a class="btn"><img style="width:45px; height:45px" src="https://cdn3.iconfinder.com/data/icons/2018-social-media-logotypes/1000/2018_social_media_popular_app_logo_reddit-128.png"></a>
</li>
</ul>
<ul class="nav justify-content-center divBtn">
<li class="nav-item">
<a class="btn"><img style="width:45px; height:45px" src="https://cdn3.iconfinder.com/data/icons/2018-social-media-logotypes/1000/2018_social_media_popular_app_logo_reddit-128.png"></a>
</li>
</ul>
<ul class="nav justify-content-end">
<li class="nav-item">
<button>My buttons</button>
<button>My buttons</button>
</li>
<li class="nav-item">
<button>My buttons</button>
</li>
<li class="nav-item">
<a class="btn"><img style="width:45px; height:45px" src="https://cdn3.iconfinder.com/data/icons/2018-social-media-logotypes/1000/2018_social_media_popular_app_logo_reddit-128.png"></a>
</li>
<li class="nav-item">
<a class="btn"> <img style="width:45px; height:45px" src="https://cdn3.iconfinder.com/data/icons/2018-social-media-logotypes/1000/2018_social_media_popular_app_logo_reddit-128.png">
</a>
</li>
<li class="nav-item">
<a class="btn"><img style="width:45px; height:45px" src="https://cdn3.iconfinder.com/data/icons/2018-social-media-logotypes/1000/2018_social_media_popular_app_logo_reddit-128.png">
</a>
</li>
</ul>
</nav>