I am trying to keep a piece of text rendered within an li element, but I don't know how to do it. I've looked up tutorials that say to use line-height, vertical-align and others, however I can't get any of them to work.
I am trying to keep the 'Shop' text both vertically and horizontally aligned within the li element. How can I do this?
ul {
  position: absolute;
  padding-left: 0px;
  width: 100%;
  height: 15%;
  top: 1%;
  list-style-type: none;
  background-color: #f8d7d7;
}
li {
  float: left;
  width: 10%;
  height: 100%;
  background-color: green;
  text-align: center;
  font-size: 2.5vw;
}<ul>
  <li>
    Shop
  </li>
</ul>Here is a fiddle:
 
     
     
    