Currently, I am working on developing a minimalist single-page website. However, I am facing challenges with spacing in the navbar section (as demonstrated below).
When using an unordered list, everything looks good until the list overlaps with the central logo. When trying to adjust the spacing by adding an empty list element, it ends up creating too much space. Is there a way to modify the spacing of individual list items?
.navbar {
position: fixed;
top: 0;
height: 11.5vh;
width: 100vw;
/* background-color: #07470B; */
/* opacity: 0.96; */
background: #f6f6f6;
z-index: 10;
padding: 0;
margin: 0;
}
.navbar ul {
list-style-type: none;
margin: 0;
padding-left: 5vw;
padding-top: 3vh;
}
.navbarList {
display: inline-block;
width: 14vw;
font-family: 'Raleway';
font-size: 5vh;
padding: 0;
margin: 0;
}
.navbarList li {
margin: 0;
}
.navbarList a {
color:#989898;
text-decoration: none;
}
.navbarList a:hover{
color: #e68935;
}
<body id="site">
<a href="#page1" class="smoothScroll"><img id="logoTop" src="images/logoHead.png"></a>
<div id="site">
<div class="navbar">
<ul>
<!-- <li class="navbarList">
<a href="#page1" class="smoothScroll">HOME</a>
</li> -->
<li class="navbarList">
<a href="#divEndPage1" class="smoothScroll">ABOUT</a>
</li>
<!--<li class="navbarList"></li>-->
<li class="navbarList">
<a href="#page3" class="smoothScroll">EVENTS</a>
</li>
<li class="navbarList">
<a href="#page4" class="smoothScroll">GALLERY</a>
</li>
<li class="navbarList"></li>
<li class="navbarList">
CONTACT
</li>
<li class="navbarList">
CONTACT
</li>
</ul>
<div id="navbarUnderline"></div>
</div>
</body>