<header>
  <div class="header-container container">
    <div class="navbar" id="navbar">
      <h1 class="logo">Logo</h1>
      <nav class="nav-links">
        <ul>
          <li><a href="#">Home</a></li>
          <li><a href="#">About</a></li>
          <li><a href="#">Blogs</a></li>
          <li><a href="#">Contact</a></li>
        </ul>
      </nav>
    </div>
  </div>
</header>
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #fff;
}

#navbar {
    padding: 1rem;
    background: #0096c7;
    color: #fff;
}

#navbar nav ul li{
  margin: 0 1rem;
}

#navbar nav ul li a {
  padding: 0.5rem 0.75rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.navbar nav ul {
/*   display: flex; */
  display: inline-block;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.