body { background: #f6f6f6; height: 100vh; } nav { background-color: white; } .search-form { width: 50%; } #sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 9999; box-shadow: -1px 0 0 rgba(0, 0, 0, 0.1); max-width: 10vw; } #sidebar .nav-item { text-align: center; padding: 25px 0; } #sidebar .nav-item a { color: rgba(0, 0, 0, 0.2); } #sidebar .nav-item a.active { color: #0d6efd; } .vertical-nav { margin-top: 20vh; } .logo { max-height: 30px; margin: 15px 25px; } a.navbar-brand { text-align: center; width: 100%; display: block; }