Struggling to create the right spacing in my inline list so that they don't appear squished together. I've experimented with word spacing and adding padding to the header links, but no luck. Interestingly, the only way I could get my list (shop, products, faq, blog) to display inline and centered was by listing them backwards. For instance, when I write
* {
padding: 0px;
margin: 0px
}
already
#header-flex {
display: flex;
position: fixed;
background: rgb(0,191,255);
height: 75px;
width: 100%;
}
header a {
display: inline-block;
float: right;
}
header li a:hover {
color: orange;
cursor: grabbing;
}
nav p a:hover {
color: orange;
cursor: grabbing;
}
.left, .mid, .right {
float: left;
width: 33%;
}
<header>
<nav id="header-flex">
<div class="left">
<img src="logo.jpg" alt=logo width="30px" height="30px">
</div>
<div class="mid">
<ul>
<li ><a href="___">Blog</a></li>
<li ><a href="___">FAQ</a></li>
<li ><a href="___">Products</a></li>
<li ><a href="___">Shop</a></li>
</ul>
</div>
<div class="right">
<p><a href="___">Sign In</a></p>
</div>
</nav>
</header>