0

When I use .container, the logo is not going to the left but when I use .container-fluid, the logo goes to the left. please tell me why .container is not working.

<body>
  <header>
    <nav id="header-nav" class="navbar navbar-light">
      <div class="container">
        <div class="navbar-header">
          <a href="project1.html" class="float-left">
            <div id="logo"></div>
          </a>
        </div>
      </div>
    </nav>
  </header>
</body>
Rayees AC
  • 4,426
  • 3
  • 8
  • 31
Reza
  • 3
  • 1

1 Answers1

0

The reason is that the .container has a max-width property (1140px in large screen, 960px in medium and so on), but the .container-fluid doesn't have max-width property it just has width: 100%. p.s please remove float-left class, handle it with flex

Genc
  • 162
  • 3