As I delve into learning Bootstrap4, I have come across the following snippet of HTML code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<style>
html, body{
height : 100%;
}
#contentwrapper{
width: 20%;
height: 100%;
padding-left: 10px;
}
</style>
</head>
<body>
<div id="contentwrapper" class="h-100 row align-items-center">
<nav class="navbar bg-dark navbar-dark" style="height: 100%;">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">Item 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Item 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Item 3</a>
</li>
</ul>
</nav>
</div>
</body>
</html>
My goal is to have the Item 1, Item 2, and Item 3 nav-items aligned to the top vertically, however, they currently appear centered vertically. Any suggestions on how I can achieve this?