li{
  list-style-type: none;
  float: left;
  padding: 1%;
}

ul{
  margin-left: 20%;
}

li{
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}
li:first-child{
  border-left: 1px solid black;
}
li:last-child{
  border-right: 1px solid black;
}

nav{
  color: white;
  background-color: black;
  float: left;
  margin-left: 25%;
}