I am trying to vertically align the 3 "li" in the centre of "nav". However, the "li" keep sticking to the top of the "nav", I have tried setting a margin for "li", the only things that changed are the sizes of their borders.
<style type="text/css">
body{
background-color: salmon;}
header {
height:80px;
backround-color:#C0504D;
color: white;
text-align: center; }
nav{
border-top: solid 2px white;
background-color: rgb(229,184,183);
text-align: center;
height: 80px;
vertical-align: middle;
}
nav li + li:before{
content: " | "
}
nav li{
display: inline;
list-style-type: none;
border: solid 1px black;
margin: 20px 0px;
}
nav li a{
font-size: 18px;
}
</style>
<nav>
<li><a href="submissionDates.html">Submisson Dates</a></li>
<li><a href="courseTutors.html">Course Tutors</a></li>
<li><a href="classTimes.html">Class Times</a></li>
</nav>