Im trying to center the items in my navbar but no matter what i do the items are glued to the left. At one point I could get all of them to move a half inch to the right or left by switching between ml-auto, mx-auto and mr-auto. Now nothing moves even when i do that. Im not sure what i did.
Ive already tried several code examples from other posts but none of them work. Im relatively new to code so im not sure whats breaking.
iv'e tried adding d-flex justify-content-center to navbar-collapse, justifying content to center in the div "collapse navbar-collapse" and a few other things suggested in other posts.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<nav class="navbar navbar-expand-md navbar-light bg-light sticky-top">
  <div class="container-fluid">
    <a class="navbar-brand" href="#"><img src="img/logo3.png" style="width:13%;" ;></a>
    <button class="navbar-toggler" type="button" data- toggle="collapse" data-target="#navbarResponsive">
       <span class="navbar-toggler-icon"></span>
             </button>
    <div class="collapse navbar-collapse d-flex justify-content-center" id="navbarResponsive">
      <ul class="navbar-nav ml-auto">
        <li class="nav-item">
          <a class="nav-link" href="#">home</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">home</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">home</a>
        </li>
      </ul>
    </div>
  </div>
</nav>
To my knowledge, my CSS has nothing targeting the Nav at the moment.
I just want the nav items in the middle of the navbar.