I am new to HTML/CSS and currently trying to learn flexbox. I am trying to move my unordered list all the way to the right side of the div while keeping the title on the left side. I tried justify-content: space-between, but it just moved the list to near the middle of the div.
.flex-container {
display: flex;
height: 100vh;
width: 100vw;
background-color: DodgerBlue;
}
.nav-bar {
background-color: purple;
width: 100%;
height: 30%;
display: flex;
justify-content: space-between;
align-item: flex-end;
}
.nav-bar ul {
list-style-type: none;
display: flex;
}
.nav-bar ul li {
padding: 2px;
margin: 3px;
}
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="flex-container">
<div class="nav-bar">
<div>
<h1>Title</h1>
</div>
<ul>
<li><a href="#">Link 1</h1>
<li><a href="#">Link 2</h1>
<li><a href="#">Link 3</h1>
</ul>
</div>
</div>
</body>
</html>