<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <link rel="stylesheet" href="style.css" />
</head>

<body>
  <!-- header -->
  <header class="header">
    <div class="header-logo">TextLogo</div>
    <nav class="nav">
      <ol class="header__list">
        <li class="header__list-item">Home</li>
        <li class="header__list-item">About</li>
        <li class="header__list-item">Contact</li>
      </ol>
    </nav>
  </header>

</body>

</html>
* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-size: 1rem;
  font-family: "Times New Roman", Times, serif;
}
/* header */
.header {
  width: 100%;
  height: 2rem;
  max-height: auto;
  word-wrap: break-word;
  background: rgb(77, 76, 76);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
}
.header-logo {
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0.5rem;
}

.header__list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-weight: 800;
  cursor: pointer;
}
.header__list-item {
  list-style: none;
  margin: 0.5rem;
  cursor: pointer;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.