0

It's being centered, but it views the left part of the text, not the center.

Thanks in advance.

Here's the important part of my HTML Code:

  nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-family: Helvetica;
  color: white;
}

body {
  background-color: tomato;
  ]
<nav>
  <ul>
    <li><a href="https://google.com">Menu</a></li>
    <li><a href="https://google.com">Menu</a></li>
    <li><a href="https://google.com">Menu</a></li>
    <li><a href="https://google.com">Menu</a></li>
    <li><a href="https://google.com">Menu</a></li>
  </ul>
</nav>
maxshuty
  • 7,411
  • 9
  • 51
  • 69

0 Answers0