<div class="container">
  <nav>
    <a href="#section-a">A</a>
    <a href="#section-b">B</a>
    <a href="#section-c">C</a>
  </nav>
  <div class="scroll-container">
    <div class="scroll-section" id="section-a">A</div>
    <div class="scroll-section" id="section-b">B</div>
    <div class="scroll-section" id="section-c">C</div>
  </div>
</div>
body {
  height: 100vh;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  overflow-y: hidden;
}

.container {
  width: auto;
  height: auto;
  border: 1px solid black;
  -webkit-transform: scale(1.5);
  -moz-transform: scale(1.5);
  transform: scale(1.5);
}

.container nav a {
  display: inline-block;
  width: 50px;
  text-decoration: none;
  color: #007bea;
  -webkit-transition: .25s;
  -moz-transition: .25s;
  transition: .25s;
}

.container nav a:hover {
  color: #0062bb;
}

.container nav, .container .scroll-container {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.container nav {
  width: 350px;
  padding: 5px;
  border-bottom: 1px solid black;
}

.container .scroll-container {
  width: 350px;
  height: 200px;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

.container .scroll-container .scroll-section {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 5em;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.