I'm new to CSS and struggling to figure out how to vertically center text within an unordered list that also contains an image.
I would like to add a logo to my navigation ul and have the text centered, but it is currently sticking to the bottom of the ul.
Here's the code I'm working with and the desired outcome: Fiddle
Check out this image for reference
HTML:
<body>
<header>
<nav id="navbar">
<ul>
<li><b><a href="index.html"><img class="logo" src="https://i28.servimg.com/u/f28/09/04/03/75/a_2_li10.png" alt="HOME"></a></b></li>
<li><b><a href="more.html">MORE</a></b></li>
<li><b><a href="services.html">SERVICES</a></b></li>
<li><b><a href="blog.html">BLOG</a></b></li>
<li><b><a href="shop.html">SHOP</a></b></li>
</ul>
</nav>
</header>
</body>
body {
background-color: #294F6D;
margin: 0;
}
#navbar ul {
margin: 0;
list-style: none;
background-color: #303E73;
text-align: center;
}
#navbar li {
display: inline-block;
background-color: #A13647;
padding: 20px 50px
}
.logo {
width: 100px;
}